|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
A template class for managing and processing data in chunks. More...
#include <chunk.hpp>
Collaboration diagram for chunk_processing::Chunk< T >:Classes | |
| class | JaggedVectorHandler |
Public Member Functions | |
| Chunk (size_t chunk_size=1) | |
| void | add (const std::vector< T > &elements) |
| void | add (const T &element) |
| template<typename U = T> | |
| std::enable_if_t< is_vector< U >::value > | add (const U &nested_data) |
| std::vector< std::vector< T > > | chunk_by_size (size_t size) |
| std::vector< std::vector< T > > | chunk_by_threshold (T threshold) |
| size_t | chunk_count () const |
| size_t | get_chunk_size () const |
| std::vector< std::vector< T > > | get_chunks () const |
| const std::vector< T > & | get_data () const |
| template<typename U > | |
| std::vector< std::vector< U > > | handle_jagged_2d (const std::vector< std::vector< U > > &data) |
| template<typename U > | |
| std::vector< std::vector< std::vector< U > > > | handle_jagged_3d (const std::vector< std::vector< std::vector< U > > > &data) |
| void | set_chunk_size (size_t new_size) |
| size_t | size () const |
| template<typename U > | |
| void | validate_dimensions (const std::vector< U > &data, size_t expected_size=0) |
Static Public Member Functions | |
| static constexpr size_t | dimensions () |
Private Member Functions | |
| std::vector< std::vector< T > > | make_chunks (size_t size) const |
| void | update_chunks () |
| void | validate_size (size_t size, const std::string ¶m) const |
Static Private Member Functions | |
| template<typename U > | |
| static constexpr size_t | get_depth () |
Private Attributes | |
| size_t | chunk_size_ |
| std::vector< std::vector< T > > | chunks_ |
| std::vector< T > | data_ |
A template class for managing and processing data in chunks.
| T | The type of elements stored in the chunk |
|
inlineexplicit |
Definition at line 126 of file chunk.hpp.
|
inline |
|
inline |
|
inline |
Definition at line 209 of file chunk.hpp.
References chunk_processing::is_jagged(), and chunk_processing::is_jagged_3d().
|
inline |
Definition at line 140 of file chunk.hpp.
|
inline |
Definition at line 150 of file chunk.hpp.
|
inline |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
inline |
|
inlinestaticconstexprprivate |
|
inline |
Definition at line 236 of file chunk.hpp.
References chunk_processing::is_jagged().
|
inline |
Definition at line 245 of file chunk.hpp.
References chunk_processing::is_jagged_3d().
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
Definition at line 253 of file chunk.hpp.
References chunk_processing::is_jagged(), and chunk_processing::is_jagged_3d().
Referenced by TEST_F().
|
inlineprivate |
|
private |
|
private |
|
private |