Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7575 in orxonox.OLD for branches/network/src/lib/lang


Ignore:
Timestamp:
May 10, 2006, 4:48:27 PM (19 years ago)
Author:
rennerc
Message:

fixed some bugs

Location:
branches/network/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/lang/base_object.cc

    r7444 r7575  
    8383  assert (!(this->classID & classID & !CL_MASK_SUBSUPER_CLASS_IDA ));
    8484
     85  this->leafClassID = classID;
    8586  this->classID |= (long)classID;
    8687  this->className = className;
     
    106107 * Factory::fabricate(Object->getLeafClassID());
    107108 */
    108 ClassID BaseObject::getLeafClassID() const
     109const ClassID& BaseObject::getLeafClassID() const
    109110{
    110   assert (this->classList != NULL);
    111   return this->classList->getLeafClassID();
     111  return this->leafClassID;
    112112}
    113113
  • branches/network/src/lib/lang/base_object.h

    r7444 r7575  
    4141  /** @returns the classID of the corresponding Object */
    4242  inline int getClassID() const { return this->classID; };
    43   ClassID    getLeafClassID() const;
     43  const ClassID& getLeafClassID() const;
    4444
    4545  bool isA (ClassID classID) const;
     
    5858    std::string        className;        //!< the name of the class
    5959    long               classID;          //!< this is the id from the class_id.h enumeration
     60    ClassID            leafClassID;      //!< The Leaf Class ID
    6061
    6162    ClassList*         classList;        //!< Pointer to the ClassList this Object is inside of
Note: See TracChangeset for help on using the changeset viewer.