Changeset 7163 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Feb 18, 2006, 5:21:03 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/Makefile.am
r7033 r7163 5 5 6 6 libORXlibs_a_SOURCES = \ 7 coord/p_node.cc \8 7 lang/base_object.cc \ 9 8 lang/class_list.cc \ 10 data/data_tank.cc \9 coord/p_node.cc \ 11 10 util/substring.cc \ 12 11 util/color.cc \ 13 12 util/helper_functions.cc \ 14 13 util/multi_type.cc \ 15 util/executor/executor.cc 14 util/executor/executor.cc \ 15 data/data_tank.cc 16 16 17 17 noinst_HEADERS = \ 18 coord/p_node.h \19 18 lang/base_object.h \ 20 data/data_tank.h \21 graphics/render2D/element_2d.h \22 graphics/render2D/render_2d.h \23 19 lang/class_list.h \ 24 20 util/substring.h \ … … 32 28 util/executor/executor_specials.h \ 33 29 util/executor/functor_list.h \ 34 util/count_pointer.h 30 util/count_pointer.h \ 31 coord/p_node.h \ 32 data/data_tank.h \ 33 graphics/render2D/element_2d.h \ 34 graphics/render2D/render_2d.h 35 35 36 36 SUBDIRS = \ -
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.