Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4519 in orxonox.OLD for orxonox/trunk/src/util/object_manager.h


Ignore:
Timestamp:
Jun 6, 2005, 2:36:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed all getInstances into inline functions to save some (minor) time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/object_manager.h

    r4485 r4519  
    4848
    4949 public:
    50   static ObjectManager* getInstance(void);
    5150  virtual ~ObjectManager(void);
     51  /** \returns a Pointer to the only object of this Class */
     52  inline static ObjectManager* getInstance(void) { if (!singletonRef) singletonRef = new ObjectManager();  return singletonRef; };
    5253 
    5354  /** a class handled by the objectManage */
Note: See TracChangeset for help on using the changeset viewer.