Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 24, 2013, 9:03:22 PM (11 years ago)
Author:
landauf
Message:

using Destroyable instead of OrxonoxClass now wherever the destruction-related members are addressed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/object/SmartPtr.h

    r9563 r9571  
    4444    object  and keeps this object alive until no SmartPtr points to this object anymore.
    4545    In contrast to orxonox::SharedPtr, SmartPtr works only with classes that are derived
    46     from orxonox::OrxonoxClass, because it's an intrusive implementation, meaning the
     46    from orxonox::Destroyable, because it's an intrusive implementation, meaning the
    4747    reference counter is stored in the object itself.
    4848
     
    7878    };
    7979    @endcode
    80     In this example we assume that OtherClass is a child of OrxonoxClass. We don't care
     80    In this example we assume that OtherClass is a child of Destroyable. We don't care
    8181    about the inheritance of MyClass though.
    8282
     
    123123#include <cassert>
    124124
    125 #include "core/class/OrxonoxClass.h"
     125#include "core/object/Destroyable.h"
    126126#include "WeakPtr.h"
    127127
     
    227227            }
    228228
    229             /// Returns the wrapped pointer as @c OrxonoxClass*
    230             inline OrxonoxClass* getBase() const
     229            /// Returns the wrapped pointer as @c Destroyable*
     230            inline Destroyable* getBase() const
    231231            {
    232232                return this->base_;
     
    268268                }
    269269                {
    270                     OrxonoxClass* temp = this->base_;
     270                    Destroyable* temp = this->base_;
    271271                    this->base_ = other.base_;
    272272                    other.base_ = temp;
     
    282282        private:
    283283            T* pointer_;            ///< The wrapped pointer to an object of type @a T
    284             OrxonoxClass* base_;    ///< The wrapped pointer, casted up to OrxonoxClass (this is needed because with just a T* pointer, SmartPtr couln't be used with forward declarations)
     284            Destroyable* base_;    ///< The wrapped pointer, casted up to Destroyable (this is needed because with just a T* pointer, SmartPtr couln't be used with forward declarations)
    285285    };
    286286
Note: See TracChangeset for help on using the changeset viewer.