- Timestamp:
- May 25, 2015, 12:00:14 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/singleton/ScopeManager.h
r10462 r10463 57 57 static ScopeManager& getInstance(); 58 58 59 void addScope(ScopeID::Value scope); 60 void removeScope(ScopeID::Value scope); 61 bool isActive(ScopeID::Value scope); 62 59 63 void addListener(ScopeListener* listener); 60 64 void removeListener(ScopeListener* listener); 61 65 62 inline int& getInstanceCount(ScopeID::Value scope)63 { return this->instanceCounts_[scope]; }64 66 inline std::set<ScopeListener*>& getListeners(ScopeID::Value scope) 65 67 { return this->listeners_[scope]; } 66 68 67 69 private: 68 std:: map<ScopeID::Value, int> instanceCounts_; //!< Counts the number of active instances (>0 means active) for a scope70 std::set<ScopeID::Value> activeScopes_; 69 71 std::map<ScopeID::Value, std::set<ScopeListener*> > listeners_; //!< Stores all listeners for a scope 70 72 };
Note: See TracChangeset
for help on using the changeset viewer.