Last change
on this file since 5796 was
5770,
checked in by bensch, 19 years ago
|
orxonox/trunk: PNode is now std::list-conform
|
File size:
709 bytes
|
Rev | Line | |
---|
[4871] | 1 | /*! |
---|
[5039] | 2 | * @file null_parent.h |
---|
[4836] | 3 | * Definition of the NullParent, the higest PNode of them all. |
---|
[3276] | 4 | */ |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | #ifndef _NULL_PARENT_H |
---|
| 8 | #define _NULL_PARENT_H |
---|
| 9 | |
---|
[3308] | 10 | #include "p_node.h" |
---|
[3276] | 11 | |
---|
[4448] | 12 | //! The top joint of all PNode's every PNode is somehow connected to this one. |
---|
[3308] | 13 | class NullParent : public PNode { |
---|
[3276] | 14 | |
---|
[4871] | 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 (); |
---|
[3533] | 19 | |
---|
[4871] | 20 | private: |
---|
[5770] | 21 | NullParent (const Vector& absCoordinate = Vector(0.0, 0.0, 0.0)); |
---|
[3311] | 22 | |
---|
[4871] | 23 | private: |
---|
| 24 | static NullParent* singletonRef; //!< A reference to the NullParent |
---|
[4448] | 25 | |
---|
[3276] | 26 | }; |
---|
| 27 | |
---|
| 28 | #endif /* _NULL_PARENT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.