MASA-Core
Public Member Functions | Private Attributes
PeerList Class Reference

Detailed Description

Definition at line 33 of file PeerList.hpp.

#include <PeerList.hpp>

List of all members.

Public Member Functions

 PeerList ()
virtual ~PeerList ()
void add (Peer *peer)
void copy (vector< Peer * > peers)
void erase (const string &id)
Peerget (const string &id) const
PeergetPrev (const string &id) const
PeergetNext (const string &id) const
vector< Peer * > getAllPeers () const
vector< Peer * > getProcessingPeers () const

Private Attributes

map< string, Peer * > peerMap

Constructor & Destructor Documentation

Definition at line 24 of file PeerList.cpp.

PeerList::~PeerList ( ) [virtual]

Definition at line 29 of file PeerList.cpp.


Member Function Documentation

void PeerList::add ( Peer peer)

Definition at line 33 of file PeerList.cpp.

void PeerList::copy ( vector< Peer * >  peers)

Definition at line 50 of file PeerList.cpp.

void PeerList::erase ( const string &  id)

Definition at line 46 of file PeerList.cpp.

Peer * PeerList::get ( const string &  id) const

Definition at line 37 of file PeerList.cpp.

vector< Peer * > PeerList::getAllPeers ( ) const

Definition at line 85 of file PeerList.cpp.

Peer * PeerList::getNext ( const string &  id) const

Definition at line 71 of file PeerList.cpp.

Peer * PeerList::getPrev ( const string &  id) const

Definition at line 57 of file PeerList.cpp.

vector< Peer * > PeerList::getProcessingPeers ( ) const

Definition at line 93 of file PeerList.cpp.


Member Data Documentation

map<string, Peer*> PeerList::peerMap [private]

Definition at line 48 of file PeerList.hpp.


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