Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7163 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Feb 18, 2006, 5:21:03 PM (19 years ago)
Author:
bensch
Message:

trunk:fixed a runtime-bug

Location:
trunk/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/Makefile.am

    r7033 r7163  
    55
    66libORXlibs_a_SOURCES = \
    7                 coord/p_node.cc \
    87                lang/base_object.cc \
    98                lang/class_list.cc \
    10                 data/data_tank.cc \
     9                coord/p_node.cc \
    1110                util/substring.cc \
    1211                util/color.cc \
    1312                util/helper_functions.cc \
    1413                util/multi_type.cc \
    15                 util/executor/executor.cc
     14                util/executor/executor.cc \
     15                data/data_tank.cc
    1616
    1717noinst_HEADERS = \
    18                 coord/p_node.h \
    1918                lang/base_object.h \
    20                 data/data_tank.h \
    21                 graphics/render2D/element_2d.h \
    22                 graphics/render2D/render_2d.h \
    2319                lang/class_list.h \
    2420                util/substring.h \
     
    3228                util/executor/executor_specials.h \
    3329                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
    3535
    3636SUBDIRS = \
  • trunk/src/lib/lang/class_list.cc

    r7162 r7163  
    178178 * !!PRIVATE!!
    179179 * @param classID the ClassID to search for
    180  * @returns the ClassList with classID as specifyer, or NULL if not
     180 * @returns the ClassList with classID as specifier, or NULL if not
    181181 */
    182182ClassList* ClassList::getClassList(ClassID classID)
    183183{
    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);
    185185  return (likely(classIT != classList->end()))? &(*classIT) : NULL;
    186186}
     
    190190 * !!PRIVATE!!
    191191 * @param className the ClassName to search for
    192  * @returns the ClassList with className as specifyer, or NULL if not
     192 * @returns the ClassList with className as specifier, or NULL if not
    193193 */
    194194ClassList* ClassList::getClassList(const char* className)
     
    196196  if (className == NULL)
    197197    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);
    199199  return (likely(classIT != classList->end()))? &(*classIT) : NULL;
    200200}
  • trunk/src/lib/lang/class_list.h

    r7162 r7163  
    5959    inline bool                           operator==(ClassID classID) { return (this->classID == classID); };
    6060    bool                                  operator==(const char* className);
     61    bool                                  operator<(ClassID classID) { return this->classID < classID; };
     62
    6163    inline ClassID                        getLeafClassID() const { return this->classID; };
    6264
Note: See TracChangeset for help on using the changeset viewer.