#include <neighbors.h>
Public Member Functions | |
std::map< int, NeighborBase > & | data () |
Neighbors< NeighborBase > | filter (bool(*f)(int, NeighborBase)) |
Neighbors< NeighborBase > | filter (const boost::function< bool(int, NeighborBase)> &f) |
void | foreach (void(*f)(NeighborBase)) |
void | foreach (const boost::function< void(NeighborBase)> &f) |
Neighbors< NeighborBase > | kin (int swarm_id) |
template<class T > | |
Neighbors< T > | map (T(*f)(NeighborBase)) |
template<class T > | |
Neighbors< T > | map (const boost::function< T(NeighborBase)> &f) |
Neighbors () | |
Neighbors (bool get_data_now) | |
Neighbors (const Neighbors< NeighborBase > &n) | |
Neighbors< NeighborBase > | nonkin (int swarm_id) |
Neighbors & | operator= (const Neighbors< NeighborBase > &n) |
void | print () |
template<class T > | |
T | reduce (T(*f)(NeighborBase, T &), T &t) |
template<class T > | |
T | reduce (const boost::function< T(NeighborBase, T &)> &f, T &t) |
~Neighbors () | |
Private Attributes | |
std::map< int, NeighborBase > | data_ |
boost::shared_ptr< RuntimeHandle > | rth_ |
Definition at line 214 of file neighbors.h.
|
inline |
Definition at line 216 of file neighbors.h.
|
inline |
Definition at line 222 of file neighbors.h.
|
inline |
Definition at line 235 of file neighbors.h.
|
inline |
Definition at line 251 of file neighbors.h.
|
inline |
Definition at line 256 of file neighbors.h.
|
inline |
Definition at line 344 of file neighbors.h.
|
inline |
Definition at line 359 of file neighbors.h.
|
inline |
Definition at line 274 of file neighbors.h.
|
inline |
Definition at line 283 of file neighbors.h.
|
inline |
Definition at line 374 of file neighbors.h.
|
inline |
Definition at line 293 of file neighbors.h.
|
inline |
Definition at line 307 of file neighbors.h.
|
inline |
Definition at line 389 of file neighbors.h.
|
inline |
Definition at line 241 of file neighbors.h.
|
inline |
Definition at line 261 of file neighbors.h.
|
inline |
Definition at line 321 of file neighbors.h.
|
inline |
Definition at line 333 of file neighbors.h.
|
private |
Definition at line 405 of file neighbors.h.
|
private |
Definition at line 404 of file neighbors.h.