Changeset 7163 in orxonox.OLD for trunk/src/lib/lang
- Timestamp:
- Feb 18, 2006, 5:21:03 PM (19 years ago)
- Location:
- trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/class_list.cc
r7162 r7163 178 178 * !!PRIVATE!! 179 179 * @param classID the ClassID to search for 180 * @returns the ClassList with classID as specif yer, or NULL if not180 * @returns the ClassList with classID as specifier, or NULL if not 181 181 */ 182 182 ClassList* ClassList::getClassList(ClassID classID) 183 183 { 184 std::vector<ClassList>::iterator classIT = find (ClassList::classList->begin(), ClassList::classList->end(), classID);184 std::vector<ClassList>::iterator classIT = std::find (ClassList::classList->begin(), ClassList::classList->end(), classID); 185 185 return (likely(classIT != classList->end()))? &(*classIT) : NULL; 186 186 } … … 190 190 * !!PRIVATE!! 191 191 * @param className the ClassName to search for 192 * @returns the ClassList with className as specif yer, or NULL if not192 * @returns the ClassList with className as specifier, or NULL if not 193 193 */ 194 194 ClassList* ClassList::getClassList(const char* className) … … 196 196 if (className == NULL) 197 197 return NULL; 198 std::vector<ClassList>::iterator classIT = find ( classList->begin(),classList->end(), className);198 std::vector<ClassList>::iterator classIT = find (ClassList::classList->begin(), ClassList::classList->end(), className); 199 199 return (likely(classIT != classList->end()))? &(*classIT) : NULL; 200 200 } -
trunk/src/lib/lang/class_list.h
r7162 r7163 59 59 inline bool operator==(ClassID classID) { return (this->classID == classID); }; 60 60 bool operator==(const char* className); 61 bool operator<(ClassID classID) { return this->classID < classID; }; 62 61 63 inline ClassID getLeafClassID() const { return this->classID; }; 62 64
Note: See TracChangeset
for help on using the changeset viewer.