Changeset 7421 for sandbox_qt/src/libraries/util/Singleton.h
- Timestamp:
- Sep 12, 2010, 12:47:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_qt/src/libraries/util/Singleton.h
r7401 r7421 145 145 146 146 //! Update method called by ClassSingletonManager (if used) 147 void preUpdateSingleton( const Clock& time) { static_cast<T*>(T::singletonPtr_s)->preUpdate(time); }147 void preUpdateSingleton() { static_cast<T*>(T::singletonPtr_s)->preUpdate(); } 148 148 //! Empty update method for the static polymorphism 149 void preUpdate( const Clock& time) { }149 void preUpdate() { } 150 150 //! Update method called by ClassSingletonManager (if used) 151 void postUpdateSingleton( const Clock& time) { static_cast<T*>(T::singletonPtr_s)->postUpdate(time); }151 void postUpdateSingleton() { static_cast<T*>(T::singletonPtr_s)->postUpdate(); } 152 152 //! Empty update method for the static polymorphism 153 void postUpdate( const Clock& time) { }153 void postUpdate() { } 154 154 155 155 protected:
Note: See TracChangeset
for help on using the changeset viewer.