- Timestamp:
- May 25, 2015, 12:13:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/NetworkFunction.cc
r10362 r10468 28 28 29 29 #include "NetworkFunction.h" 30 #include "NetworkFunctionManager.h" 30 31 #include "core/CoreIncludes.h" 31 32 32 33 namespace orxonox 33 34 { 34 std::map<uint32_t, bool> NetworkFunctionBase::isStaticMap_;35 36 35 std::map<NetworkFunctionPointer, NetworkMemberFunctionBase*> NetworkMemberFunctionBase::functorMap_; 37 36 std::map<uint32_t, NetworkMemberFunctionBase*> NetworkMemberFunctionBase::idMap_; … … 50 49 51 50 this->name_ = name; 52 NetworkFunction Base::getNameMap()[name] = this;51 NetworkFunctionManager::getNameMap()[name] = this; 53 52 } 54 53 NetworkFunctionBase::~NetworkFunctionBase() 55 54 { 56 }57 58 59 void NetworkFunctionBase::destroyAllNetworkFunctions()60 {61 std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionBase::getNameMap();62 std::map<std::string, NetworkFunctionBase*>::iterator it;63 for( it=map.begin(); it!=map.end(); ++it )64 delete it->second;65 }66 67 68 /*static*/ std::map<std::string, NetworkFunctionBase*>& NetworkFunctionBase::getNameMap()69 {70 static std::map<std::string, NetworkFunctionBase*> nameMap_;71 return nameMap_;72 55 } 73 56
Note: See TracChangeset
for help on using the changeset viewer.