Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2007, 11:01:25 PM (17 years ago)
Author:
landauf
Message:
  • fixed a small bug in the object hierarchy
  • new objects are now added to all class-lists they're derived from (until now they were only added to the list of their class). this means: i'm replacing the tree-structure by a mountain-one, which costs more memory but allows faster iteration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/BaseObject.h

    r219 r220  
    5050            inline bool isDirectParentOf(BaseIdentifier<class B> identifier)
    5151                { this->getIdentifier()->isDirectParentOf(identifier.getIdentifier()); }
    52 /*
     52
    5353            inline bool isA(OrxonoxClass* object)
    5454                { this->getIdentifier()->isA(object->getIdentifier()); }
    5555            inline bool isDirectlyA(OrxonoxClass* object)
    56                 { this->getIdentifier()->isDirectlyA(object->getIdentifier); }
     56                { this->getIdentifier()->isDirectlyA(object->getIdentifier()); }
    5757            inline bool isChildOf(OrxonoxClass* object)
    58                 { this->getIdentifier()->isChildOf(object->getIdentifier); }
     58                { this->getIdentifier()->isChildOf(object->getIdentifier()); }
    5959            inline bool isDirectChildOf(OrxonoxClass* object)
    60                 { this->getIdentifier()->isDirectChildOf(object->getIdentifier); }
     60                { this->getIdentifier()->isDirectChildOf(object->getIdentifier()); }
    6161            inline bool isParentOf(OrxonoxClass* object)
    62                 { this->getIdentifier()->isParentOf(object->getIdentifier); }
     62                { this->getIdentifier()->isParentOf(object->getIdentifier()); }
    6363            inline bool isDirectParentOf(OrxonoxClass* object)
    64                 { this->getIdentifier()->isDirectParentOf(object->getIdentifier); }
    65 */
     64                { this->getIdentifier()->isDirectParentOf(object->getIdentifier()); }
     65
    6666    };
    6767}
Note: See TracChangeset for help on using the changeset viewer.