Changeset 162 for code/branches/objecthierarchie/src/ClassHierarchy.cc
- Timestamp:
- Nov 5, 2007, 12:52:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchie/src/ClassHierarchy.cc
r150 r162 31 31 void Identifier::initialize(IdentifierList* parents) 32 32 { 33 std::cout << "*** Initialize " << this->name_ << "-Singleton.\n"; 33 34 if (parents) 34 35 { … … 76 77 } 77 78 78 void Identifier::addObject(BaseObject* object) 79 { 79 void Identifier::addObject(OrxonoxClass* object) 80 { 81 std::cout << "*** Added " << this->name_ << " to list.\n"; 80 82 this->objects_->add(object); 81 83 } 82 84 83 void Identifier::removeObject(BaseObject* object) 84 { 85 void Identifier::removeObject(OrxonoxClass* object) 86 { 87 std::cout << "*** Removed " << this->name_ << " from list.\n"; 85 88 this->objects_->remove(object); 86 89 } … … 218 221 } 219 222 220 void ObjectList::add( BaseObject* object)223 void ObjectList::add(OrxonoxClass* object) 221 224 { 222 225 ObjectListElement* temp = this->first_; … … 225 228 } 226 229 227 void ObjectList::remove( BaseObject* object)230 void ObjectList::remove(OrxonoxClass* object) 228 231 { 229 232 if (!object) … … 259 262 // ### ObjectListElement ### 260 263 // ############################### 261 ObjectListElement::ObjectListElement( BaseObject* object)264 ObjectListElement::ObjectListElement(OrxonoxClass* object) 262 265 { 263 266 this->object_ = object; 264 267 this->next_ = NULL; 265 268 } 269 270 271 // ############################### 272 // ### ClassHierarchy ### 273 // ############################### 274 ClassHierarchy* ClassHierarchy::pointer_ = NULL; 275 276 ClassHierarchy* ClassHierarchy::getSingleton() 277 { 278 if (!pointer_) 279 pointer_ = new ClassHierarchy(); 280 281 return pointer_; 282 } 283 284 ClassHierarchy::ClassHierarchy() 285 { 286 this->bCreatingHierarchy_ = false; 287 } 266 288 }
Note: See TracChangeset
for help on using the changeset viewer.