Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2015, 11:20:45 PM (9 years ago)
Author:
landauf
Message:

use the generic UpdateListener interface to receive calls to preUpdate() and postUpdate() instead of limiting this functionality to singletons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/util/Singleton.h

    r10398 r10413  
    146146        }
    147147
    148         //! Update method called by ClassSingletonManager (if used)
    149         void preUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->preUpdate(time); }
    150         //! Empty update method for the static polymorphism
    151         void preUpdate(const Clock& time) { }
    152         //! Update method called by ClassSingletonManager (if used)
    153         void postUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->postUpdate(time); }
    154         //! Empty update method for the static polymorphism
    155         void postUpdate(const Clock& time) { }
    156 
    157148    protected:
    158149        //! Constructor sets the singleton instance pointer
Note: See TracChangeset for help on using the changeset viewer.