Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4871 in orxonox.OLD


Ignore:
Timestamp:
Jul 15, 2005, 1:22:52 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: classList is now able to show Information on single Classes

Location:
orxonox/trunk/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r4836 r4871  
    11
    22
    3 /* 
     3/*
    44   orxonox - the future of 3D-vertical-scrollers
    55
     
    2525
    2626/**
    27  * @returns the Reference to the NullParent
    28 */
    29 NullParent* NullParent::getInstance ()
    30 {
    31   if(!NullParent::singletonRef)
    32     NullParent::singletonRef = new NullParent ();
    33   return NullParent::singletonRef;
    34 }
    35 
    36 /**
    3727 *  creates the one and only NullParent
    3828 * @param absCoordinate the cordinate of the Parent (normally Vector(0,0,0))
     
    5141 *  standard deconstructor
    5242*/
    53 NullParent::~NullParent () 
     43NullParent::~NullParent ()
    5444{
    5545  //delete singletonRef;
  • orxonox/trunk/src/lib/coord/null_parent.h

    r4836 r4871  
    1 /*! 
     1/*!
    22    \file null_parent.h
    33  *  Definition of the NullParent, the higest PNode of them all.
     
    1313class NullParent : public PNode {
    1414
    15  public:
    16   static NullParent* getInstance ();
    17   virtual ~NullParent ();
     15  public:
     16    /** @returns a Pointer to the only object of this Class */
     17    inline static NullParent* getInstance() { if (!singletonRef) singletonRef = new NullParent();  return singletonRef; };
     18    virtual ~NullParent ();
    1819
    19  private:
    20   NullParent (const Vector& absCoordinate = Vector());
     20  private:
     21    NullParent (const Vector& absCoordinate = Vector());
    2122
    22  private:
    23   static NullParent* singletonRef;        //!< A reference to the NullParent
     23  private:
     24    static NullParent* singletonRef;        //!< A reference to the NullParent
    2425
    2526};
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4840 r4871  
    208208/**
    209209 * Print out some very nice debug information
    210  */
    211     void ClassList::debug(unsigned int debugLevel)
     210 * @param debugLevel the level of verbosity
     211 * @param classID the class that should be displayed (if CL_NULL (default) all classes will be displayed)
     212 */
     213    void ClassList::debug(unsigned int debugLevel, long classID)
    212214{
    213215  if (debugLevel > 2)
     
    223225  while (likely(tmp != NULL))
    224226  {
    225     if (debugLevel >= 1 || tmp->objectList->getSize() > 0)
     227    if ((debugLevel >= 1 || tmp->objectList->getSize() > 0 ) &&
     228         (classID == CL_NULL || unlikely (classID == tmp->classID)))
    226229    {
    227230      lenCount = 1;
  • orxonox/trunk/src/lib/lang/class_list.h

    r4840 r4871  
    4242    static bool               exists(BaseObject* object, long classID = CL_NULL);
    4343
    44     static void debug(unsigned int debugLevel = 0);
     44    static void debug(unsigned int debugLevel = 0, long classID = CL_NULL);
    4545
    4646  private:
Note: See TracChangeset for help on using the changeset viewer.