Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 12:00:14 AM (9 years ago)
Author:
landauf
Message:

removed unnecessary instance counts. creation of scopes is strictly controlled (in Core.cc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/singleton/ScopeManager.cc

    r10462 r10463  
    4444    }
    4545
     46    void ScopeManager::addScope(ScopeID::Value scope)
     47    {
     48        this->activeScopes_.insert(scope);
     49    }
     50
     51    void ScopeManager::removeScope(ScopeID::Value scope)
     52    {
     53        this->activeScopes_.erase(scope);
     54    }
     55
     56    bool ScopeManager::isActive(ScopeID::Value scope)
     57    {
     58        return this->activeScopes_.find(scope) != this->activeScopes_.end();
     59    }
     60
    4661    void ScopeManager::addListener(ScopeListener* listener)
    4762    {
Note: See TracChangeset for help on using the changeset viewer.