Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 24, 2013, 8:51:37 PM (11 years ago)
Author:
landauf
Message:

moved functions and attributes needed to safely destroy objects from OrxonoxClass to Destroyable

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/libraries/core/object/Destroyable.cc

    r9565 r9570  
    2929/**
    3030    @file
    31     @brief Implementation of OrxonoxClass.
     31    @brief Implementation of Destroyable.
    3232*/
    3333
    34 #include "OrxonoxClass.h"
     34#include "Destroyable.h"
    3535
    3636#include <cassert>
    37 #include "core/object/MetaObjectList.h"
    38 #include "core/object/Context.h"
    39 #include "Identifier.h"
    4037
    4138namespace orxonox
     
    4441        @brief Constructor: Sets the default values.
    4542    */
    46     OrxonoxClass::OrxonoxClass()
     43    Destroyable::Destroyable()
    4744    {
    4845        this->referenceCount_ = 0;
     
    5350        @brief Destructor: Notifies all DestructionListener (for example @ref WeakPtr "weak pointers") that this object is being deleted.
    5451    */
    55     OrxonoxClass::~OrxonoxClass()
     52    Destroyable::~Destroyable()
    5653    {
    5754        assert(this->referenceCount_ <= 0);
     
    6562        @brief Deletes the object if no @ref orxonox::SmartPtr "smart pointers" point to this object. Otherwise schedules the object to be deleted as soon as possible.
    6663    */
    67     void OrxonoxClass::destroy()
     64    void Destroyable::destroy()
    6865    {
    6966        assert(this); // Just in case someone tries to delete a NULL pointer
Note: See TracChangeset for help on using the changeset viewer.