Changeset 4519 in orxonox.OLD for orxonox/trunk/src/proto
- Timestamp:
- Jun 6, 2005, 2:36:04 PM (20 years ago)
- Location:
- orxonox/trunk/src/proto
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/proto/proto_singleton.cc
r4320 r4519 47 47 48 48 /** 49 \returns a Pointer to this Class50 */51 ProtoSingleton* ProtoSingleton::getInstance(void)52 {53 if (!ProtoSingleton::singletonRef)54 ProtoSingleton::singletonRef = new ProtoSingleton();55 return ProtoSingleton::singletonRef;56 }57 58 /**59 49 \brief standard deconstructor 60 50 -
orxonox/trunk/src/proto/proto_singleton.h
r3955 r4519 16 16 17 17 public: 18 static ProtoSingleton* getInstance(void);19 18 virtual ~ProtoSingleton(void); 19 /** \returns a Pointer to the only object of this Class */ 20 inline static ProtoSingleton* getInstance(void) { if (!singletonRef) singletonRef = new ProtoSingleton(); return singletonRef; }; 20 21 21 22 private:
Note: See TracChangeset
for help on using the changeset viewer.