YARP
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 ()=default
 
 PeerRecord (const PeerRecord &alt)=default
 
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 23 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 ( )
default

◆ PeerRecord() [2/2]

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

Member Function Documentation

◆ add()

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

Definition at line 35 of file Election.h.

◆ getFirst()

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

Definition at line 45 of file Election.h.

◆ remove()

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

Definition at line 40 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: