Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4756 in orxonox.OLD for orxonox/trunk/src/lib/lang


Ignore:
Timestamp:
Jul 1, 2005, 7:50:30 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: slight optimisations

Location:
orxonox/trunk/src/lib/lang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4755 r4756  
    123123    while (likely(tmp != NULL))
    124124    {
    125       if (tmp->classID == classID || classID == CL_NULL)
     125      if (tmp->classID == classID || (classID == CL_NULL && tmp->classID == CL_BASE_OBJECT))
    126126      {
    127127        tIterator<BaseObject>* iterator = tmp->objectList->getIterator();
     
    152152  PRINT(0)("=  CLASS_LIST (level %d)  =\n", debugLevel);
    153153  PRINT(0)("==========================\n");
    154   PRINT(0)("has %d Elements\n\n", ClassList::classCount);
     154  PRINT(0)(" knows %d Classes\n\n", ClassList::classCount);
    155155  ClassList* tmp = ClassList::first;
    156156  char niceString[100];
     
    168168      niceString[30-strlen(tmp->className) - lenCount] = '\0';
    169169
    170       PRINT(0)(" CLASS %s:%s %d instances\n", tmp->className, niceString, tmp->objectList->getSize());
     170      PRINT(0)(" CLASS %s:%s %d\n", tmp->className, niceString, tmp->objectList->getSize());
    171171
    172172      if (debugLevel >=2 && tmp->objectList->getSize() > 0)
  • orxonox/trunk/src/lib/lang/class_list.h

    r4754 r4756  
    2727    virtual ~ClassList();
    2828
     29    // STATIC FUNCTIONS
    2930    static void addToClassList(BaseObject* objectPointer, const long& classID, const char* className);
    3031    static void removeFromClassList(BaseObject* objectPointer);
    3132
    32     bool exists(BaseObject* object, long classID = CL_NULL);
     33    static bool exists(BaseObject* object, long classID = CL_NULL);
    3334
    3435    static void debug(unsigned int debugLevel = 0);
Note: See TracChangeset for help on using the changeset viewer.