Orxonox  0.0.5 Codename: Arcturus
Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
orxonox::NetworkFunctionManager Class Reference

#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/NetworkFunctionManager.h>

Inheritance diagram for orxonox::NetworkFunctionManager:
orxonox::Singleton< NetworkFunctionManager >

Public Member Functions

void clearNetworkIDs ()
 Cleans the NetworkID map (needed on clients for correct initialization) More...
 
const std::set< NetworkFunctionBase * > & getAllFunctions ()
 
NetworkFunctionBasegetFunctionByFunctionPointer (const NetworkFunctionPointer &p)
 
NetworkFunctionBasegetFunctionByName (const std::string &name)
 
NetworkFunctionBasegetFunctionByNetworkId (uint32_t id)
 
void registerFunction (NetworkFunctionBase *function)
 
void unregisterFunction (NetworkFunctionBase *function)
 

Private Attributes

std::set< NetworkFunctionBase * > functions_
 
std::map< NetworkFunctionPointer, NetworkFunctionBase * > functorMap_
 
std::map< uint32_t, NetworkFunctionBase * > idMap_
 
std::map< std::string, NetworkFunctionBase * > nameMap_
 

Static Private Attributes

static NetworkFunctionManagersingletonPtr_s = nullptr
 

Friends

class Singleton< NetworkFunctionManager >
 

Additional Inherited Members

- Static Public Member Functions inherited from orxonox::Singleton< NetworkFunctionManager >
static bool exists ()
 Tells whether the singleton has been created. More...
 
static NetworkFunctionManagergetInstance ()
 Returns a reference to the singleton instance. More...
 
- Protected Member Functions inherited from orxonox::Singleton< NetworkFunctionManager >
 Singleton ()
 Constructor sets the singleton instance pointer. More...
 
virtual ~Singleton ()
 Destructor resets the singleton instance pointer. More...
 

Member Function Documentation

void orxonox::NetworkFunctionManager::clearNetworkIDs ( )

Cleans the NetworkID map (needed on clients for correct initialization)

const std::set<NetworkFunctionBase*>& orxonox::NetworkFunctionManager::getAllFunctions ( )
inline
NetworkFunctionBase * orxonox::NetworkFunctionManager::getFunctionByFunctionPointer ( const NetworkFunctionPointer p)
NetworkFunctionBase * orxonox::NetworkFunctionManager::getFunctionByName ( const std::string &  name)
NetworkFunctionBase * orxonox::NetworkFunctionManager::getFunctionByNetworkId ( uint32_t  id)
void orxonox::NetworkFunctionManager::registerFunction ( NetworkFunctionBase function)
void orxonox::NetworkFunctionManager::unregisterFunction ( NetworkFunctionBase function)

Friends And Related Function Documentation

friend class Singleton< NetworkFunctionManager >
friend

Member Data Documentation

std::set<NetworkFunctionBase*> orxonox::NetworkFunctionManager::functions_
private
std::map<NetworkFunctionPointer, NetworkFunctionBase*> orxonox::NetworkFunctionManager::functorMap_
private
std::map<uint32_t, NetworkFunctionBase*> orxonox::NetworkFunctionManager::idMap_
private
std::map<std::string, NetworkFunctionBase*> orxonox::NetworkFunctionManager::nameMap_
private
NetworkFunctionManager * orxonox::NetworkFunctionManager::singletonPtr_s = nullptr
staticprivate

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