YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::os::PeerRecord< T > Class Template Reference

#include <yarp/os/Election.h>

+ Inheritance diagram for yarp::os::PeerRecord< T >:

Public Types

typedefpeer_type
 
typedef std::map< T *, boolmap_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 19 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 26 of file Election.h.

◆ iterator

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

Definition at line 25 of file Election.h.

◆ map_type

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

Definition at line 23 of file Election.h.

◆ peer_type

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

Definition at line 22 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 31 of file Election.h.

◆ getFirst()

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

Definition at line 41 of file Election.h.

◆ remove()

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

Definition at line 36 of file Election.h.

Member Data Documentation

◆ peerSet

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

Definition at line 24 of file Election.h.


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