Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 27, 2007, 4:59:55 AM (18 years ago)
Author:
landauf
Message:

IdentifierMap works now on tardis (this pre-main() stuff is s* and ! f* !)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/Identifier.cc

    r691 r696  
    4040    int Identifier::hierarchyCreatingCounter_s = 0; // Set the static member variable hierarchyCreatingCounter_s to zero
    4141    unsigned int Identifier::classIDcounter_s = 0;  // Set the static member variable classIDcounter_s to zero
    42     std::map<std::string, Identifier*> Identifier::identifierMap_s;
    4342
    4443    /**
     
    115114
    116115    /**
     116        @returns a reference to the Identifier map, containing all Identifiers.
     117    */
     118    std::map<std::string, Identifier*>& Identifier::getIdentifierMap()
     119    {
     120        static std::map<std::string, Identifier*> identifierMapStaticReference = std::map<std::string, Identifier*>();
     121        return identifierMapStaticReference;
     122    }
     123
     124    /**
    117125        @returns true, if the Identifier is at least of the given type.
    118126        @param identifier The identifier to compare with
Note: See TracChangeset for help on using the changeset viewer.