Changeset 3544 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Mar 14, 2005, 10:54:00 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/helper_parent.cc
r3533 r3544 41 41 HelperParent::~HelperParent () 42 42 { 43 this->destroy(); 43 44 44 } 45 46 47 /**48 \brief destroys all allocated memory49 */50 void HelperParent::destroy(void)51 {52 53 54 static_cast<PNode*>(this)->destroy();55 } -
orxonox/trunk/src/lib/coord/helper_parent.h
r3533 r3544 18 18 HelperParent (); 19 19 virtual ~HelperParent (); 20 void destroy(void);21 20 22 21 }; -
orxonox/trunk/src/lib/coord/null_parent.cc
r3543 r3544 61 61 NullParent::~NullParent () 62 62 { 63 this->destroy();64 }65 66 /**67 \brief destroys all allocated memory68 */69 void NullParent::destroy(void)70 {71 63 //delete singletonRef; 72 64 singletonRef = NULL; 73 74 static_cast<PNode*>(this)->destroy();75 65 } 76 77 78 66 79 67 /** -
orxonox/trunk/src/lib/coord/null_parent.h
r3533 r3544 17 17 static NullParent* getInstance (); 18 18 virtual ~NullParent (); 19 void destroy(void);20 21 19 22 20 static NullParent* singletonRef; -
orxonox/trunk/src/lib/coord/p_node.cc
r3543 r3544 113 113 /* there is currently a problem with cleaning up - fix*/ 114 114 115 this->destroy(); 115 PNode* pn = this->children->enumerate(); 116 while( pn != NULL) 117 { 118 pn = this->children->nextElement(); 119 delete pn; 120 } 121 /* this deletes all children in the list */ 122 delete this->children; 123 116 124 } 117 125 … … 122 130 cleans up all pnodes 123 131 */ 132 /* 124 133 void PNode::destroy () 125 134 { … … 130 139 pn = this->children->nextElement(); 131 140 } 132 / * this deletes all children in the list */141 // this deletes all children in the list 133 142 this->children->destroy (); 134 143 135 144 static_cast<BaseObject*>(this)->destroy(); 136 145 } 137 146 */ 138 147 139 148 /** -
orxonox/trunk/src/lib/coord/p_node.h
r3543 r3544 41 41 PNode (Vector* absCoordinate, PNode* pNode); 42 42 virtual ~PNode (); 43 44 void destroy ();45 43 46 44 PNode* parent; //!< a pointer to the parent node
Note: See TracChangeset
for help on using the changeset viewer.