Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 7, 2010, 12:58:52 AM (14 years ago)
Author:
landauf
Message:

enhanced documentation of some core classes and added examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/doc/src/libraries/core/OrxonoxClass.h

    r7363 r7372  
    5959namespace orxonox
    6060{
    61     //! The class all objects and interfaces of the game-logic (not the engine) are derived from.
    6261    /**
    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.
    6465        OrxonoxClass is needed to create the class-hierarchy at startup and to store the Identifier and the MetaObjectList.
    6566    */
     
    8283            void unregisterObject();
    8384
    84             /** @brief Function to collect the SetConfigValue-macro calls. */
     85            /// Function to collect the SetConfigValue-macro calls.
    8586            void setConfigValues() {};
    8687
    87             /** @brief Returns the Identifier of the object. @return The Identifier */
     88            /// Returns the Identifier of the object.
    8889            inline Identifier* getIdentifier() const { return this->identifier_; }
    8990
     
    137138            }
    138139
    139             //! Version of getDerivedPointer with template
     140            /// Version of getDerivedPointer with template
    140141            template <class T> FORCEINLINE T* getDerivedPointer(unsigned int classID)
    141142            {   return static_cast<T*>(this->getDerivedPointer(classID));   }
    142             //! Const version of getDerivedPointer with template
     143            /// Const version of getDerivedPointer with template
    143144            template <class T> FORCEINLINE const T* getDerivedPointer(unsigned int classID) const
    144145            {   return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID);   }
     
    148149
    149150        private:
    150             /** @brief Increments the reference counter (for smart pointers). */
     151            /// Increments the reference counter (for smart pointers).
    151152            inline void incrementReferenceCount()
    152153                { ++this->referenceCount_; }
    153             /** @brief Decrements the reference counter (for smart pointers). */
     154            /// Decrements the reference counter (for smart pointers).
    154155            inline void decrementReferenceCount()
    155156            {
     
    159160            }
    160161
    161             /** @brief Register a weak pointer which points to this object. */
     162            /// Register a weak pointer which points to this object.
    162163            template <class T>
    163164            inline void registerWeakPtr(WeakPtr<T>* pointer)
    164165                { 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.
    166167            template <class T>
    167168            inline void unregisterWeakPtr(WeakPtr<T>* pointer)
     
    175176            std::set<WeakPtr<OrxonoxClass>*> weakPointers_; //!< All weak pointers which point to this object (and like to get notified if it dies)
    176177
    177             //! 'Fast map' that holds this-pointers of all derived types
     178            /// 'Fast map' that holds this-pointers of all derived types
    178179            std::vector<std::pair<unsigned int, void*> > objectPointers_;
    179180    };
Note: See TracChangeset for help on using the changeset viewer.