BioDynaMo
v1.05.120-25dc9790
|
#include <reduce.h>
Public Member Functions | |
~Reducer () override=default | |
virtual TResult | GetResult ()=0 |
virtual void | Reset ()=0 |
Resets the internal state between calculations. More... | |
virtual Reducer * | NewCopy () const =0 |
Public Member Functions inherited from bdm::Functor< void, Agent * > | |
virtual | ~Functor ()=default |
virtual void | operator() (TArgs... args)=0 |
An interface for any type of implementation that wishes to calculate a reduction over all agents (e.g. counting, averaging, finding minimum and maximum values, etc.).
The benefit of this interface is that multiple reduction operations can be combined to avoid iterating over all agents multiple times.
|
overridedefault |
|
pure virtual |
Implemented in bdm::experimental::Counter< TResult >, and bdm::experimental::GenericReducer< T, TResult >.
|
pure virtual |
|
pure virtual |
Resets the internal state between calculations.
Implemented in bdm::experimental::Counter< TResult >, and bdm::experimental::GenericReducer< T, TResult >.