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.h

    r10462 r10463  
    5757            static ScopeManager& getInstance();
    5858
     59            void addScope(ScopeID::Value scope);
     60            void removeScope(ScopeID::Value scope);
     61            bool isActive(ScopeID::Value scope);
     62
    5963            void addListener(ScopeListener* listener);
    6064            void removeListener(ScopeListener* listener);
    6165
    62             inline int& getInstanceCount(ScopeID::Value scope)
    63                 { return this->instanceCounts_[scope]; }
    6466            inline std::set<ScopeListener*>& getListeners(ScopeID::Value scope)
    6567                { return this->listeners_[scope]; }
    6668
    6769        private:
    68             std::map<ScopeID::Value, int> instanceCounts_;                  //!< Counts the number of active instances (>0 means active) for a scope
     70            std::set<ScopeID::Value> activeScopes_;
    6971            std::map<ScopeID::Value, std::set<ScopeListener*> > listeners_; //!< Stores all listeners for a scope
    7072    };
Note: See TracChangeset for help on using the changeset viewer.