#include <CGlobalPeerList.hpp>
CGlobalPeerList::begin
- Description:
- Return an iterator to the beginning of the container's table.
- Returns
- An iterator to the beginning of the peer list.
int freedm::broker::CGlobalPeerList::Count |
( |
const std::string & |
uuid | ) |
|
CGlobalPeerList::Count
- Description:
- Count the number of peers with a specified uuid
- Parameters
-
- Returns
- A count of all nodes with that uuid in the table. (should be 1 or 0)
CPeerNode freedm::broker::CGlobalPeerList::Create |
( |
std::string |
uuid | ) |
|
CGlobalPeerList::Create
- Description:
- Adds a peer to the global peerlist by it's uuid
- Precondition:
- None
- Postcondition:
- If the peer is not already in the peerlist, it is inserted in the global peerlist.
- Parameters
-
- Returns
- A CPeerNode for the given uuid.
CGlobalPeerList::end
- Description:
- Return an iterator to the end of the container's table.
- Returns
- An iterator to the end of the peer list.
CGlobalPeerList::Find
- Description:
- Return an iterator to the peer with the given uuid
- Parameters
-
uuid | The UUID of the peer you are attempting to access |
- Returns
- An iterator to the peer if found or end() if not found.
CPeerNode freedm::broker::CGlobalPeerList::GetPeer |
( |
const std::string & |
uuid | ) |
|
CGlobalPeerList::GetPeer
- Description:
- Fetch a peer based on uuid, throws an exception if they aren't found
- Parameters
-
uuid | The UUID of the peer you are attempting to get |
- Returns
- A CPeerNode object for the specified peer.
- Error Handling:
- Runtime exception if no peer matches that description.
void freedm::broker::CGlobalPeerList::Insert |
( |
CPeerNode |
p | ) |
|
CGlobalPeerList::Insert
- Description:
- Pushes a peer node into the set
- Precondition:
- None
- Postcondition:
- p has been added to the global peer list.
- Parameters
-
PeerSet freedm::broker::CGlobalPeerList::m_peerlist |
|
private |
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/freedm/checkouts/latest/Broker/src/CGlobalPeerList.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/freedm/checkouts/latest/Broker/src/CGlobalPeerList.cpp