Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchy/src/orxonox/core/OrxonoxClass.cc @ 365

Last change on this file since 365 was 365, checked in by landauf, 16 years ago

added comments

File size: 646 bytes
RevLine 
[365]1/*!
2    @file OrxonoxClass.cc
3    @brief Implementation of the OrxonoxClass Class.
4*/
5
[162]6#include "OrxonoxClass.h"
7
8namespace orxonox
9{
[365]10    /** @brief Constructor: Sets identifier_ and parents_ to zero. */
[162]11    OrxonoxClass::OrxonoxClass()
12    {
13        this->identifier_ = 0;
14        this->parents_ = 0;
15    }
16
[365]17    /** @brief Destructor: Deletes, if existing, the list of the parents. */
[162]18    OrxonoxClass::~OrxonoxClass()
19    {
[365]20        // parents_ exists only if isCreatingHierarchy() of the associated Identifier returned true while creating the class
[162]21        if (this->parents_)
22            delete this->parents_;
23    }
24}
Note: See TracBrowser for help on using the repository browser.