YARP  2.3.68+220-20170323.2+git4955ef0
Yet Another Robot Platform
yarp::os::PeerRecord< T > Class Template Reference

#include <yarp/os/Election.h>

Public Types

typedef T peer_type
 
typedef std::map< T *, bool > map_type
 
typedef map_type::iterator iterator
 
typedef map_type::const_iterator const_iterator
 

Public Member Functions

 PeerRecord ()
 
 PeerRecord (const PeerRecord &alt)
 
void add (T *entity)
 
void remove (T *entity)
 
T * getFirst ()
 

Public Attributes

map_type peerSet
 

Detailed Description

template<class T>
class yarp::os::PeerRecord< T >

Definition at line 18 of file Election.h.

Member Typedef Documentation

◆ const_iterator

template<class T>
typedef map_type::const_iterator yarp::os::PeerRecord< T >::const_iterator

Definition at line 30 of file Election.h.

◆ iterator

template<class T>
typedef map_type::iterator yarp::os::PeerRecord< T >::iterator

Definition at line 29 of file Election.h.

◆ map_type

template<class T>
typedef std::map<T *, bool> yarp::os::PeerRecord< T >::map_type

Definition at line 27 of file Election.h.

◆ peer_type

template<class T>
typedef T yarp::os::PeerRecord< T >::peer_type

Definition at line 26 of file Election.h.

Constructor & Destructor Documentation

◆ PeerRecord() [1/2]

template<class T>
yarp::os::PeerRecord< T >::PeerRecord ( )
inline

Definition at line 32 of file Election.h.

◆ PeerRecord() [2/2]

template<class T>
yarp::os::PeerRecord< T >::PeerRecord ( const PeerRecord< T > &  alt)
inline

Definition at line 35 of file Election.h.

Member Function Documentation

◆ add()

template<class T>
void yarp::os::PeerRecord< T >::add ( T *  entity)
inline

Definition at line 38 of file Election.h.

◆ getFirst()

template<class T>
T* yarp::os::PeerRecord< T >::getFirst ( )
inline

Definition at line 46 of file Election.h.

◆ remove()

template<class T>
void yarp::os::PeerRecord< T >::remove ( T *  entity)
inline

Definition at line 42 of file Election.h.

Member Data Documentation

◆ peerSet

template<class T>
map_type yarp::os::PeerRecord< T >::peerSet

Definition at line 28 of file Election.h.


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