#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.
micros_swarm::Neighbors< Type >::Neighbors | ( | ) | [inline] |
Definition at line 39 of file neighbors.h.
micros_swarm::Neighbors< Type >::Neighbors | ( | const Neighbors< Type > & | n | ) | [inline] |
Definition at line 45 of file neighbors.h.
micros_swarm::Neighbors< Type >::~Neighbors | ( | ) | [inline] |
Definition at line 61 of file neighbors.h.
std::map<int, Type>& micros_swarm::Neighbors< Type >::data | ( | ) | [inline] |
Definition at line 66 of file neighbors.h.
Neighbors<Type> micros_swarm::Neighbors< Type >::filter | ( | bool(*)(int, Type) | f | ) | [inline] |
Definition at line 148 of file neighbors.h.
Neighbors<Type> micros_swarm::Neighbors< Type >::filter | ( | const boost::function< bool(int, Type)> & | f | ) | [inline] |
Definition at line 162 of file neighbors.h.
void micros_swarm::Neighbors< Type >::foreach | ( | void(*)(Type) | f | ) | [inline] |
Definition at line 80 of file neighbors.h.
void micros_swarm::Neighbors< Type >::foreach | ( | const boost::function< void(Type)> & | f | ) | [inline] |
Definition at line 89 of file neighbors.h.
Neighbors<Type> micros_swarm::Neighbors< Type >::kin | ( | int | swarm_id | ) | [inline] |
Definition at line 176 of file neighbors.h.
Neighbors<T2> micros_swarm::Neighbors< Type >::map | ( | T2(*)(Type) | f | ) | [inline] |
Definition at line 99 of file neighbors.h.
Neighbors<T2> micros_swarm::Neighbors< Type >::map | ( | const boost::function< T2(Type)> & | f | ) | [inline] |
Definition at line 112 of file neighbors.h.
Neighbors<Type> micros_swarm::Neighbors< Type >::nonkin | ( | int | swarm_id | ) | [inline] |
Definition at line 191 of file neighbors.h.
Neighbors& micros_swarm::Neighbors< Type >::operator= | ( | const Neighbors< Type > & | n | ) | [inline] |
Definition at line 51 of file neighbors.h.
void micros_swarm::Neighbors< Type >::print | ( | ) | [inline] |
Definition at line 71 of file neighbors.h.
T2 micros_swarm::Neighbors< Type >::reduce | ( | T2(*)(Type, T2 &) | f, |
T2 & | t2 | ||
) | [inline] |
Definition at line 125 of file neighbors.h.
T2 micros_swarm::Neighbors< Type >::reduce | ( | const boost::function< T2(Type, T2 &)> & | f, |
T2 & | t2 | ||
) | [inline] |
Definition at line 137 of file neighbors.h.
std::map<int, Type> micros_swarm::Neighbors< Type >::data_ [private] |
Definition at line 207 of file neighbors.h.
boost::shared_ptr<RuntimeHandle> micros_swarm::Neighbors< Type >::rth_ [private] |
Definition at line 206 of file neighbors.h.