- Timestamp:
- May 25, 2015, 2:14:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/NetworkFunction.cc
r10471 r10474 38 38 39 39 this->name_ = name; 40 NetworkFunctionManager::get NameMap()[name] = this;41 NetworkFunctionManager::get FunctorMap()[p] = this;42 NetworkFunctionManager::getI dMap()[this->getNetworkID()] = this;40 NetworkFunctionManager::getInstance().getNameMap()[name] = this; 41 NetworkFunctionManager::getInstance().getFunctorMap()[p] = this; 42 NetworkFunctionManager::getInstance().getIdMap()[this->getNetworkID()] = this; 43 43 } 44 44 45 45 void NetworkFunctionBase::setNetworkID(uint32_t id) 46 46 { 47 NetworkFunctionManager::getI dMap().erase(this->networkID_); // remove old id47 NetworkFunctionManager::getInstance().getIdMap().erase(this->networkID_); // remove old id 48 48 this->networkID_ = id; 49 NetworkFunctionManager::getI dMap()[this->networkID_] = this; // add new id49 NetworkFunctionManager::getInstance().getIdMap()[this->networkID_] = this; // add new id 50 50 } 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.