Changeset 4837 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jul 12, 2005, 3:11:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/lang/base_object.cc
r4836 r4837 103 103 bool BaseObject::isA (long classID) const 104 104 { 105 // if classID is a derivable object 106 if ( likely(classID & CL_MASK_SUPER_CLASS || classID & CL_MASK_SUBSUPER_CLASS))105 // if classID is a derivable object from a SUPERCLASS 106 if (classID & CL_MASK_SUPER_CLASS) 107 107 { 108 if( this->classID & classID)108 if( likely(this->classID & classID)) 109 109 return true; 110 } // if classID is a LOWLEVEL-class 110 } 111 // if classID is a SubSuperClass, and 112 else if (classID & CL_MASK_SUBSUPER_CLASS) 113 { 114 if (likely(((this->classID & CL_MASK_SUBSUPER_CLASS_ID) == (this->classID & CL_MASK_SUBSUPER_CLASS_ID)) && 115 this->classID & classID & CL_MASK_SUBSUPER_CLASS_ID2)) 116 return true; 117 } 118 // if classID is a LOWLEVEL-class 111 119 else 112 120 { 113 if( (this->classID & CL_MASK_LOWLEVEL_CLASS) == classID)121 if( likely((this->classID & CL_MASK_LOWLEVEL_CLASS) == classID)) 114 122 return true; 115 123 }
Note: See TracChangeset
for help on using the changeset viewer.