Public Member Functions | Private Attributes
micros_swarm::Neighbors< NeighborBase > Class Template Reference

#include <neighbors.h>

List of all members.

Public Member Functions

std::map< int, NeighborBase > & data ()
Neighbors< NeighborBasefilter (bool(*f)(int, NeighborBase))
Neighbors< NeighborBasefilter (const boost::function< bool(int, NeighborBase)> &f)
void foreach (void(*f)(NeighborBase))
void foreach (const boost::function< void(NeighborBase)> &f)
Neighbors< NeighborBasekin (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< NeighborBasenonkin (int swarm_id)
Neighborsoperator= (const Neighbors< NeighborBase > &n)
void print ()
template<class T >
reduce (T(*f)(NeighborBase, T &), T &t)
template<class T >
reduce (const boost::function< T(NeighborBase, T &)> &f, T &t)
 ~Neighbors ()

Private Attributes

std::map< int, NeighborBasedata_
boost::shared_ptr< RuntimeHandlerth_

Detailed Description

template<>
class micros_swarm::Neighbors< NeighborBase >

Definition at line 214 of file neighbors.h.


Constructor & Destructor Documentation

Definition at line 216 of file neighbors.h.

micros_swarm::Neighbors< NeighborBase >::Neighbors ( bool  get_data_now) [inline]

Definition at line 222 of file neighbors.h.

Definition at line 235 of file neighbors.h.

Definition at line 251 of file neighbors.h.


Member Function Documentation

std::map<int, NeighborBase>& micros_swarm::Neighbors< NeighborBase >::data ( ) [inline]

Definition at line 256 of file neighbors.h.

Definition at line 344 of file neighbors.h.

Neighbors<NeighborBase> micros_swarm::Neighbors< NeighborBase >::filter ( const boost::function< bool(int, NeighborBase)> &  f) [inline]

Definition at line 359 of file neighbors.h.

void micros_swarm::Neighbors< NeighborBase >::foreach ( void(*)(NeighborBase f) [inline]

Definition at line 274 of file neighbors.h.

void micros_swarm::Neighbors< NeighborBase >::foreach ( const boost::function< void(NeighborBase)> &  f) [inline]

Definition at line 283 of file neighbors.h.

Definition at line 374 of file neighbors.h.

template<class T >
Neighbors<T> micros_swarm::Neighbors< NeighborBase >::map ( T(*)(NeighborBase f) [inline]

Definition at line 293 of file neighbors.h.

template<class T >
Neighbors<T> micros_swarm::Neighbors< NeighborBase >::map ( const boost::function< T(NeighborBase)> &  f) [inline]

Definition at line 307 of file neighbors.h.

Definition at line 389 of file neighbors.h.

Neighbors& micros_swarm::Neighbors< NeighborBase >::operator= ( const Neighbors< NeighborBase > &  n) [inline]

Definition at line 241 of file neighbors.h.

Definition at line 261 of file neighbors.h.

template<class T >
T micros_swarm::Neighbors< NeighborBase >::reduce ( T(*)(NeighborBase, T &)  f,
T &  t 
) [inline]

Definition at line 321 of file neighbors.h.

template<class T >
T micros_swarm::Neighbors< NeighborBase >::reduce ( const boost::function< T(NeighborBase, T &)> &  f,
T &  t 
) [inline]

Definition at line 333 of file neighbors.h.


Member Data Documentation

Definition at line 405 of file neighbors.h.

boost::shared_ptr<RuntimeHandle> micros_swarm::Neighbors< NeighborBase >::rth_ [private]

Definition at line 404 of file neighbors.h.


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


micros_swarm
Author(s):
autogenerated on Thu Jun 6 2019 18:52:14