Changeset 7372 for code/branches/doc/src/libraries/core/OrxonoxClass.h
- Timestamp:
- Sep 7, 2010, 12:58:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/OrxonoxClass.h
r7363 r7372 59 59 namespace orxonox 60 60 { 61 //! The class all objects and interfaces of the game-logic (not the engine) are derived from.62 61 /** 63 The BaseObject and Interfaces are derived with 'virtual public OrxonoxClass' from OrxonoxClass. 62 @brief The class all objects and interfaces of the game-logic (not the engine) are derived from. 63 64 The BaseObject and Interfaces are derived with @c virtual @c public @c OrxonoxClass from OrxonoxClass. 64 65 OrxonoxClass is needed to create the class-hierarchy at startup and to store the Identifier and the MetaObjectList. 65 66 */ … … 82 83 void unregisterObject(); 83 84 84 / ** @brief Function to collect the SetConfigValue-macro calls. */85 /// Function to collect the SetConfigValue-macro calls. 85 86 void setConfigValues() {}; 86 87 87 / ** @brief Returns the Identifier of the object. @return The Identifier */88 /// Returns the Identifier of the object. 88 89 inline Identifier* getIdentifier() const { return this->identifier_; } 89 90 … … 137 138 } 138 139 139 // !Version of getDerivedPointer with template140 /// Version of getDerivedPointer with template 140 141 template <class T> FORCEINLINE T* getDerivedPointer(unsigned int classID) 141 142 { return static_cast<T*>(this->getDerivedPointer(classID)); } 142 // !Const version of getDerivedPointer with template143 /// Const version of getDerivedPointer with template 143 144 template <class T> FORCEINLINE const T* getDerivedPointer(unsigned int classID) const 144 145 { return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID); } … … 148 149 149 150 private: 150 / ** @brief Increments the reference counter (for smart pointers). */151 /// Increments the reference counter (for smart pointers). 151 152 inline void incrementReferenceCount() 152 153 { ++this->referenceCount_; } 153 / ** @brief Decrements the reference counter (for smart pointers). */154 /// Decrements the reference counter (for smart pointers). 154 155 inline void decrementReferenceCount() 155 156 { … … 159 160 } 160 161 161 / ** @brief Register a weak pointer which points to this object. */162 /// Register a weak pointer which points to this object. 162 163 template <class T> 163 164 inline void registerWeakPtr(WeakPtr<T>* pointer) 164 165 { this->weakPointers_.insert(reinterpret_cast<WeakPtr<OrxonoxClass>*>(pointer)); } 165 / ** @brief Unegister a weak pointer which pointed to this object before. */166 /// Unegister a weak pointer which pointed to this object before. 166 167 template <class T> 167 168 inline void unregisterWeakPtr(WeakPtr<T>* pointer) … … 175 176 std::set<WeakPtr<OrxonoxClass>*> weakPointers_; //!< All weak pointers which point to this object (and like to get notified if it dies) 176 177 177 // !'Fast map' that holds this-pointers of all derived types178 /// 'Fast map' that holds this-pointers of all derived types 178 179 std::vector<std::pair<unsigned int, void*> > objectPointers_; 179 180 };
Note: See TracChangeset
for help on using the changeset viewer.