Public Member Functions | Private Attributes | List of all members
micros_swarm::Neighbors< Type > Class Template Reference

#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)
 
Neighborsoperator= (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< RuntimeHandlerth_
 

Detailed Description

template<class Type>
class micros_swarm::Neighbors< Type >

Definition at line 37 of file neighbors.h.

Constructor & Destructor Documentation

template<class Type>
micros_swarm::Neighbors< Type >::Neighbors ( )
inline

Definition at line 39 of file neighbors.h.

template<class Type>
micros_swarm::Neighbors< Type >::Neighbors ( const Neighbors< Type > &  n)
inline

Definition at line 45 of file neighbors.h.

template<class Type>
micros_swarm::Neighbors< Type >::~Neighbors ( )
inline

Definition at line 61 of file neighbors.h.

Member Function Documentation

template<class Type>
std::map<int, Type>& micros_swarm::Neighbors< Type >::data ( )
inline

Definition at line 66 of file neighbors.h.

template<class Type>
Neighbors<Type> micros_swarm::Neighbors< Type >::filter ( bool(*)(int, Type)  f)
inline

Definition at line 148 of file neighbors.h.

template<class Type>
Neighbors<Type> micros_swarm::Neighbors< Type >::filter ( const boost::function< bool(int, Type)> &  f)
inline

Definition at line 162 of file neighbors.h.

template<class Type>
void micros_swarm::Neighbors< Type >::foreach ( void(*)(Type)  f)
inline

Definition at line 80 of file neighbors.h.

template<class Type>
void micros_swarm::Neighbors< Type >::foreach ( const boost::function< void(Type)> &  f)
inline

Definition at line 89 of file neighbors.h.

template<class Type>
Neighbors<Type> micros_swarm::Neighbors< Type >::kin ( int  swarm_id)
inline

Definition at line 176 of file neighbors.h.

template<class Type>
template<class T2 >
Neighbors<T2> micros_swarm::Neighbors< Type >::map ( T2(*)(Type)  f)
inline

Definition at line 99 of file neighbors.h.

template<class Type>
template<class T2 >
Neighbors<T2> micros_swarm::Neighbors< Type >::map ( const boost::function< T2(Type)> &  f)
inline

Definition at line 112 of file neighbors.h.

template<class Type>
Neighbors<Type> micros_swarm::Neighbors< Type >::nonkin ( int  swarm_id)
inline

Definition at line 191 of file neighbors.h.

template<class Type>
Neighbors& micros_swarm::Neighbors< Type >::operator= ( const Neighbors< Type > &  n)
inline

Definition at line 51 of file neighbors.h.

template<class Type>
void micros_swarm::Neighbors< Type >::print ( )
inline

Definition at line 71 of file neighbors.h.

template<class Type>
template<class T2 >
T2 micros_swarm::Neighbors< Type >::reduce ( T2(*)(Type, T2 &)  f,
T2 &  t2 
)
inline

Definition at line 125 of file neighbors.h.

template<class Type>
template<class T2 >
T2 micros_swarm::Neighbors< Type >::reduce ( const boost::function< T2(Type, T2 &)> &  f,
T2 &  t2 
)
inline

Definition at line 137 of file neighbors.h.

Member Data Documentation

template<class Type>
std::map<int, Type> micros_swarm::Neighbors< Type >::data_
private

Definition at line 207 of file neighbors.h.

template<class Type>
boost::shared_ptr<RuntimeHandle> micros_swarm::Neighbors< Type >::rth_
private

Definition at line 206 of file neighbors.h.


The documentation for this class was generated from the following file:


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06