Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 9:40:11 PM (9 years ago)
Author:
landauf
Message:

StaticallyInitializedIdentifier is now responsible to register and unregister the assigned identifier.

Location:
code/branches/core7/src/libraries/core/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/class/IdentifierManager.cc

    r10479 r10481  
    6868        this->identifierByLowercaseString_[getLowercase(identifier->getName())] = identifier;
    6969        this->identifierByNetworkId_[identifier->getNetworkID()] = identifier;
     70    }
     71
     72    /**
     73     * Unregisters the identifier from all maps of the IdentifierManager.
     74     */
     75    void IdentifierManager::removeIdentifier(Identifier* identifier)
     76    {
     77        this->identifiers_.erase(identifier);
     78        this->identifierByString_.erase(identifier->getName());
     79        this->identifierByLowercaseString_.erase(getLowercase(identifier->getName()));
     80        this->identifierByNetworkId_.erase(identifier->getNetworkID());
    7081    }
    7182
  • code/branches/core7/src/libraries/core/class/IdentifierManager.h

    r10403 r10481  
    5050
    5151            void addIdentifier(Identifier* identifier);
     52            void removeIdentifier(Identifier* identifier);
    5253
    5354            unsigned int getUniqueClassId()
Note: See TracChangeset for help on using the changeset viewer.