Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6077 in orxonox.OLD for trunk/src/lib/lang/base_object.h


Ignore:
Timestamp:
Dec 13, 2005, 2:53:22 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: better and faster BaseObject/ClassList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/base_object.h

    r5791 r6077  
    3535  inline int getClassID() const { return this->classID; };
    3636
    37   bool isA (long classID) const;
     37  bool isA (ClassID classID) const;
    3838  bool isA (const char* className) const;
    3939  void whatIs() const;
    4040
    4141  bool operator==(const char* objectName);
     42  /** @param classID comparer for a ClassID @returns true on match, false otherwise */
     43  bool operator==(ClassID classID) { return this->isA(classID); };
    4244
    4345 protected:
Note: See TracChangeset for help on using the changeset viewer.