- Timestamp:
- Jun 30, 2009, 2:44:06 PM (15 years ago)
- Location:
- code/branches/netp6/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp6/src/network/NetworkFunction.cc
r3214 r3256 56 56 57 57 58 void NetworkFunctionBase::destroyAllNetworkFunctions() 59 { 60 std::map<std::string, NetworkFunctionBase*>::iterator it; 61 for( it=NetworkFunctionBase::nameMap_.begin(); it!=NetworkFunctionBase::nameMap_.end(); ++it ) 62 delete it->second; 63 } 64 58 65 59 66 NetworkFunctionStatic::NetworkFunctionStatic(FunctorStatic* functor, const std::string& name, const NetworkFunctionPointer& p): -
code/branches/netp6/src/network/NetworkFunction.h
r3214 r3256 80 80 81 81 static inline void setNetworkID(const std::string& name, uint32_t id){ assert( nameMap_.find(name)!=nameMap_.end() ); nameMap_[name]->setNetworkID(id); } 82 83 static void destroyAllNetworkFunctions(); 82 84 83 85 protected: -
code/branches/netp6/src/orxonox/gamestates/GSRoot.cc
r3196 r3256 37 37 #include "interfaces/TimeFactorListener.h" 38 38 #include "interfaces/Tickable.h" 39 #include "network/NetworkFunction.h" 39 40 40 41 namespace orxonox … … 60 61 GSRoot::~GSRoot() 61 62 { 63 NetworkFunctionBase::destroyAllNetworkFunctions(); 62 64 } 63 65
Note: See TracChangeset
for help on using the changeset viewer.