Orxonox
0.0.5 Codename: Arcturus
|
#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/NetworkFunctionManager.h>
Public Member Functions | |
void | clearNetworkIDs () |
Cleans the NetworkID map (needed on clients for correct initialization) More... | |
const std::set< NetworkFunctionBase * > & | getAllFunctions () |
NetworkFunctionBase * | getFunctionByFunctionPointer (const NetworkFunctionPointer &p) |
NetworkFunctionBase * | getFunctionByName (const std::string &name) |
NetworkFunctionBase * | getFunctionByNetworkId (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 NetworkFunctionManager * | singletonPtr_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 NetworkFunctionManager & | getInstance () |
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... | |
void orxonox::NetworkFunctionManager::clearNetworkIDs | ( | ) |
Cleans the NetworkID map (needed on clients for correct initialization)
|
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 | ) |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |