Changeset 172 for code/branches/objecthierarchie/src/ClassHierarchy.cc
- Timestamp:
- Nov 6, 2007, 1:40:00 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchie/src/ClassHierarchy.cc
r162 r172 1 1 #include "ClassHierarchy.h" 2 #include "OrxonoxClass.h" 2 3 3 4 namespace orxonox … … 27 28 this->allChildren_ = new IdentifierList(); 28 29 this->objects_ = new ObjectList(); 30 } 31 32 Identifier::~Identifier() 33 { 34 delete this->directParents_; 35 delete this->allParents_; 36 delete this->directChildren_; 37 delete this->allChildren_; 38 delete this->objects_; 39 delete &this->name_; 29 40 } 30 41 … … 94 105 } 95 106 96 bool Identifier::isDirect A(Identifier* identifier)107 bool Identifier::isDirectlyA(Identifier* identifier) 97 108 { 98 109 return (identifier == this); … … 190 201 } 191 202 203 std::string IdentifierList::toString() 204 { 205 IdentifierListElement* temp = this->first_; 206 std::string output = ""; 207 208 while (temp) 209 { 210 output += temp->identifier_->getName(); 211 output += " "; 212 213 temp = temp->next_; 214 } 215 216 return output; 217 } 218 192 219 193 220 // ############################### … … 199 226 this->next_ = NULL; 200 227 this->bDirect_ = true; 228 } 229 230 IdentifierListElement::~IdentifierListElement() 231 { 201 232 } 202 233 … … 268 299 } 269 300 301 ObjectListElement::~ObjectListElement() 302 { 303 } 304 270 305 271 306 // ############################### … … 284 319 ClassHierarchy::ClassHierarchy() 285 320 { 286 this->bCreatingHierarchy_ = false; 321 this->hierarchyCreatingCounter_ = 0; 322 } 323 324 ClassHierarchy::~ClassHierarchy() 325 { 326 this->pointer_ = NULL; 287 327 } 288 328 }
Note: See TracChangeset
for help on using the changeset viewer.