Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3533 in orxonox.OLD for orxonox/trunk/src/lib/coord


Ignore:
Timestamp:
Mar 13, 2005, 11:19:00 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: added some more files to the new destructor-type

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

Legend:

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

    r3488 r3533  
    3939   \todo this deconstructor is not jet implemented - do it
    4040*/
    41 HelperParent::~HelperParent () {}
     41HelperParent::~HelperParent ()
     42{
     43  this->destroy();
     44}
    4245
     46
     47/**
     48   \brief destroys all allocated memory
     49*/
     50void HelperParent::destroy(void)
     51{
     52
     53
     54  static_cast<PNode*>(this)->destroy();
     55}
  • orxonox/trunk/src/lib/coord/helper_parent.h

    r3488 r3533  
    1717 public:
    1818  HelperParent ();
    19   ~HelperParent ();
    20 
     19  virtual ~HelperParent ();
     20  void destroy(void);
    2121
    2222};
  • orxonox/trunk/src/lib/coord/null_parent.cc

    r3529 r3533  
    6161NullParent::~NullParent ()
    6262{
     63  this->destroy();
     64}
     65
     66/**
     67   \brief destroys all allocated memory
     68*/
     69void NullParent::destroy(void)
     70{
    6371  //delete singletonRef;
    6472  singletonRef = NULL;
     73
     74  static_cast<PNode*>(this)->destroy();
    6575}
    66 
    6776
    6877
  • orxonox/trunk/src/lib/coord/null_parent.h

    r3488 r3533  
    1616 public:
    1717  static NullParent* getInstance ();
    18   ~NullParent ();
     18  virtual ~NullParent ();
     19  void destroy(void);
    1920 
     21
    2022  static NullParent* singletonRef;
    2123
Note: See TracChangeset for help on using the changeset viewer.