|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
Parallel chunk processor for concurrent operations. More...
#include <parallel_chunk.hpp>
Public Types | |
| using | ChunkOperation = std::function< void(std::vector< T > &)> |
Static Public Member Functions | |
| template<typename U > | |
| static std::vector< std::vector< U > > | map (const std::vector< std::vector< T > > &chunks, std::function< U(const T &)> operation) |
| Map operation over chunks in parallel. | |
| static void | process_chunks (std::vector< std::vector< T > > &chunks, const std::function< void(std::vector< T > &)> &operation) |
| Process chunks in parallel. | |
| static T | reduce (const std::vector< std::vector< T > > &chunks, std::function< T(const T &, const T &)> operation, T initial) |
| Reduce chunks in parallel. | |
Parallel chunk processor for concurrent operations.
| T | The type of elements to process |
Definition at line 19 of file parallel_chunk.hpp.
| using parallel_chunk::ParallelChunkProcessor< T >::ChunkOperation = std::function<void(std::vector<T>&)> |
Definition at line 21 of file parallel_chunk.hpp.
|
inlinestatic |
Map operation over chunks in parallel.
| chunks | Input chunks |
| operation | Mapping operation |
Definition at line 64 of file parallel_chunk.hpp.
|
inlinestatic |
Process chunks in parallel.
| chunks | Vector of chunks to process |
| operation | Operation to apply to each chunk |
| num_threads | Number of threads to use (default: hardware concurrency) |
Definition at line 29 of file parallel_chunk.hpp.
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
|
inlinestatic |
Reduce chunks in parallel.
| chunks | Input chunks |
| operation | Reduction operation |
| initial | Initial value |
Definition at line 91 of file parallel_chunk.hpp.