Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/coord/null_parent.h @ 6070

Last change on this file since 6070 was 5770, checked in by bensch, 19 years ago

orxonox/trunk: PNode is now std::list-conform

File size: 709 bytes
Line 
1/*!
2 * @file null_parent.h
3  *  Definition of the NullParent, the higest PNode of them all.
4*/
5
6
7#ifndef _NULL_PARENT_H
8#define _NULL_PARENT_H
9
10#include "p_node.h"
11
12//! The top joint of all PNode's every PNode is somehow connected to this one.
13class NullParent : public PNode {
14
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 ();
19
20  private:
21    NullParent (const Vector& absCoordinate = Vector(0.0, 0.0, 0.0));
22
23  private:
24    static NullParent* singletonRef;        //!< A reference to the NullParent
25
26};
27
28#endif /* _NULL_PARENT_H */
Note: See TracBrowser for help on using the repository browser.