1#ifndef MIGRATION_BUFFER_H
2#define MIGRATION_BUFFER_H
18 template <
typename GeneType>
Represents a single candidate solution in the population.
Interface for a thread-safe buffer that stores incoming migrants.
virtual void push(std::vector< Individual< GeneType > > &&incoming_deme_batch)=0
Adds a batch of individuals to the buffer.
virtual bool hasMigrants() const =0
Checks if there are any migrants waiting in the buffer.
virtual ~MigrationBuffer()=default
virtual void popAll(std::vector< Individual< GeneType > > &target)=0
Retrieves and removes all currently stored migrants.