Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 23, 2005, 5:43:07 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented garbage collector, is not yet collecting, i have to update the list.h first.

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

Legend:

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

    r3607 r3646  
    3030{
    3131  this->className = NULL;
     32  this->finalized = false;
    3233}
    3334
     
    5859  return true;
    5960}
     61
     62
     63bool BaseObject::isFinalized()
     64{
     65  return this->finalized;
     66}
     67
     68
     69void BaseObject::finalize()
     70{
     71  this->finalized = true;
     72}
  • orxonox/trunk/src/lib/lang/base_object.h

    r3609 r3646  
    2121  bool isA (char* className);
    2222
     23  bool isFinalized();
     24  void finalize();
     25
    2326 private:
    2427  char* className;
    25 
     28  bool finalized;
    2629};
    2730
Note: See TracChangeset for help on using the changeset viewer.