- Timestamp:
- Dec 1, 2007, 4:24:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/core/OrxonoxClass.cc
r258 r365 1 /*! 2 @file OrxonoxClass.cc 3 @brief Implementation of the OrxonoxClass Class. 4 */ 5 1 6 #include "OrxonoxClass.h" 2 7 3 8 namespace orxonox 4 9 { 10 /** @brief Constructor: Sets identifier_ and parents_ to zero. */ 5 11 OrxonoxClass::OrxonoxClass() 6 12 { 7 13 this->identifier_ = 0; 8 14 this->parents_ = 0; 9 10 this->metaList_ = new MetaObjectList;11 15 } 12 16 17 /** @brief Destructor: Deletes, if existing, the list of the parents. */ 13 18 OrxonoxClass::~OrxonoxClass() 14 19 { 20 // parents_ exists only if isCreatingHierarchy() of the associated Identifier returned true while creating the class 15 21 if (this->parents_) 16 22 delete this->parents_; 17 18 delete this->metaList_;19 23 } 20 24 }
Note: See TracChangeset
for help on using the changeset viewer.