#include <neighbors.h>
Public Member Functions | |
std::map< int, Type > & | data () |
Neighbors< Type > | filter (bool(*f)(int, Type)) |
Neighbors< Type > | filter (const boost::function< bool(int, Type)> &f) |
void | foreach (void(*f)(Type)) |
void | foreach (const boost::function< void(Type)> &f) |
Neighbors< Type > | kin (int swarm_id) |
template<class T2 > | |
Neighbors< T2 > | map (T2(*f)(Type)) |
template<class T2 > | |
Neighbors< T2 > | map (const boost::function< T2(Type)> &f) |
Neighbors () | |
Neighbors (const Neighbors< Type > &n) | |
Neighbors< Type > | nonkin (int swarm_id) |
Neighbors & | operator= (const Neighbors< Type > &n) |
void | print () |
template<class T2 > | |
T2 | reduce (T2(*f)(Type, T2 &), T2 &t2) |
template<class T2 > | |
T2 | reduce (const boost::function< T2(Type, T2 &)> &f, T2 &t2) |
~Neighbors () | |
Private Attributes | |
std::map< int, Type > | data_ |
boost::shared_ptr< RuntimeHandle > | rth_ |
Definition at line 37 of file neighbors.h.
|
inline |
Definition at line 39 of file neighbors.h.
|
inline |
Definition at line 45 of file neighbors.h.
|
inline |
Definition at line 61 of file neighbors.h.
|
inline |
Definition at line 66 of file neighbors.h.
|
inline |
Definition at line 148 of file neighbors.h.
|
inline |
Definition at line 162 of file neighbors.h.
|
inline |
Definition at line 80 of file neighbors.h.
|
inline |
Definition at line 89 of file neighbors.h.
|
inline |
Definition at line 176 of file neighbors.h.
|
inline |
Definition at line 99 of file neighbors.h.
|
inline |
Definition at line 112 of file neighbors.h.
|
inline |
Definition at line 191 of file neighbors.h.
|
inline |
Definition at line 51 of file neighbors.h.
|
inline |
Definition at line 71 of file neighbors.h.
|
inline |
Definition at line 125 of file neighbors.h.
|
inline |
Definition at line 137 of file neighbors.h.
|
private |
Definition at line 207 of file neighbors.h.
|
private |
Definition at line 206 of file neighbors.h.