|
GALib-Parallel
Header-only C++ library for parallel evolutionary algorithms
|
#include <CircularBuffer.h>
Public Member Functions | |
| CircularBuffer (const std::size_t max_batches, const std::size_t batch_size) | |
| void | push (std::vector< Individual< GeneType > > &&incoming_deme_batch) override |
| Adds a batch of individuals to the buffer. | |
| virtual void | popAll (std::vector< Individual< GeneType > > &target) override |
| Retrieves and removes all currently stored migrants. | |
| bool | hasMigrants () const override |
| Checks if there are any migrants waiting in the buffer. | |
Public Member Functions inherited from galib::internal::MigrationBuffer< GeneType > | |
| virtual | ~MigrationBuffer ()=default |
Definition at line 15 of file CircularBuffer.h.
|
inlineexplicit |
Definition at line 27 of file CircularBuffer.h.
|
inlineoverridevirtual |
Checks if there are any migrants waiting in the buffer.
Implements galib::internal::MigrationBuffer< GeneType >.
Definition at line 66 of file CircularBuffer.h.
|
inlineoverridevirtual |
Retrieves and removes all currently stored migrants.
| target | Vector where the migrants will be moved to. |
Implements galib::internal::MigrationBuffer< GeneType >.
Definition at line 43 of file CircularBuffer.h.
|
inlineoverridevirtual |
Adds a batch of individuals to the buffer.
| incoming_deme_batch | The individuals that arrived from another island. |
Implements galib::internal::MigrationBuffer< GeneType >.
Definition at line 31 of file CircularBuffer.h.