![]() |
fpmas 1.6
|
#include <model.h>
Public Member Functions | |
CompareNeighbors (const Compare &compare) | |
bool | operator() (const Neighbor< AgentType > &n1, const Neighbor< AgentType > &n2) const |
Default Neighbor comparison function object.
AgentType | Type of neighbor agents |
Compare | a comparator that can compare two AgentType instance. The comparator must defined a method with the following signature: bool operator()(const Neighbor< AgentType > &n1, const Neighbor< AgentType > &n2) const Definition: model.h:159 AgentTypes are compared using the operator< , that can be user defined. |
|
inline |
Compares agents using the specified function object.
|
inline |
Compares neighbors' agents using the a Compare instance.