23 #ifndef CGLOBALPEERLIST_HPP 24 #define CGLOBALPEERLIST_HPP 29 #include <boost/noncopyable.hpp> 45 :
private boost::noncopyable
50 typedef std::map<std::string, CPeerNode>
PeerSet;
62 int Count(
const std::string& uuid);
64 PeerSetIterator Find(
const std::string& uuid);
66 PeerSetIterator begin();
68 PeerSetIterator end();
PeerSet m_peerlist
The set of peers to present.
Definition: CGlobalPeerList.hpp:77
ModuleMessage PeerList(std::string requester="all")
Generates a peer list.
Definition: GroupManagement.cpp:300
Base interface for agents/broker modules.
Definition: CPeerNode.hpp:37
static CGlobalPeerList & instance()
Provides the global instance.
Definition: CGlobalPeerList.hpp:54
Declaration of Garcia-Molina Invitation Leader Election algorithm.
Definition: GroupManagement.hpp:45
PeerSet::iterator PeerSetIterator
Provides and Iterator.
Definition: CGlobalPeerList.hpp:52
CPeerNode GetPeer(const std::string &uuid)
Gets a pointer to a peer from UUID.
Definition: GroupManagement.cpp:1294
Definition: CGlobalPeerList.hpp:44
General FREEDM Namespace.
Definition: CBroker.cpp:53
std::map< std::string, CPeerNode > PeerSet
The peerset type.
Definition: CGlobalPeerList.hpp:50