Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 2:36:54 PM (18 years ago)
Author:
bensch
Message:

new_class_id: many more classes done

File:
1 edited

Legend:

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

    r9684 r9686  
    9595}
    9696
     97
     98/**
     99 * @brief Seeks in the Inheritance if it matches objectList.
     100 * @param objectList The ObjectList this should be a member of (by Pointer-comparison).
     101 * @return True if found, false if not.
     102 */
     103bool BaseObject::isA(const NewClassID& classID) const
     104{
     105  ClassList::const_iterator it;
     106  for (it = this->_classes.begin(); it != this->_classes.end(); ++it)
     107    if (*(*it)._objectList == classID)
     108      return true;
     109  return false;
     110}
     111
    97112/**
    98113 * @brief Seeks in the Inheritance if it matches objectList.
Note: See TracChangeset for help on using the changeset viewer.