Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 11, 2013, 9:07:38 PM (11 years ago)
Author:
landauf
Message:

made IdentifierManager a self-initializing singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/class/Identifier.cc

    r9632 r9640  
    5050    */
    5151    Identifier::Identifier()
    52         : classID_(IdentifierManager::classIDCounter_s++)
     52        : classID_(IdentifierManager::getInstance().classIDCounter_s++)
    5353    {
    5454        this->bCreatedOneObject_ = false;
     
    8787    {
    8888        // Check if at least one object of the given type was created
    89         if (!this->bCreatedOneObject_ && IdentifierManager::isCreatingHierarchy())
     89        if (!this->bCreatedOneObject_ && IdentifierManager::getInstance().isCreatingHierarchy())
    9090        {
    9191            // If no: We have to store the information and initialize the Identifier
     
    155155            this->name_ = name;
    156156            this->bSetName_ = true;
    157             IdentifierManager::getStringIdentifierMapIntern()[name] = this;
    158             IdentifierManager::getLowercaseStringIdentifierMapIntern()[getLowercase(name)] = this;
    159             IdentifierManager::getIDIdentifierMapIntern()[this->networkID_] = this;
     157            IdentifierManager::getInstance().identifierByString_[name] = this;
     158            IdentifierManager::getInstance().identifierByLowercaseString_[getLowercase(name)] = this;
     159            IdentifierManager::getInstance().identifierByNetworkId_[this->networkID_] = this;
    160160        }
    161161    }
     
    196196    {
    197197//        Identifier::getIDIdentifierMapIntern().erase(this->networkID_);
    198         IdentifierManager::getIDIdentifierMapIntern()[id] = this;
     198        IdentifierManager::getInstance().identifierByNetworkId_[id] = this;
    199199        this->networkID_ = id;
    200200    }
Note: See TracChangeset for help on using the changeset viewer.