OpenBarnyard
 
Loading...
Searching...
No Matches
TNodeTree< T >::TNode Class Reference

#include <TNodeTree.h>

Inheritance diagram for TNodeTree< T >::TNode:
TResource TTask TIndexBlockResource TIndexFactoryResourceInterface TIndexPoolResourceInterface TNullResource TTexture TTextureFactory TVertexBlockResource TVertexFactoryResourceInterface TVertexPoolResourceInterface

Public Member Functions

TBOOL IsChildOfDefaultRoot () const
 
TBOOL IsLinked () const
 
T * Parent () const
 
T * Next () const
 
T * Prev () const
 
TNodeTree< T > * Tree () const
 
T * Child () const
 

Public Attributes

friend TNodeTree
 

Protected Member Functions

 TNode ()
 

Protected Attributes

TNodeTree< T > * m_Tree
 
T * m_Next
 
T * m_Prev
 
T * m_Parent
 
T * m_Child
 

Detailed Description

template<class T>
class TNodeTree< T >::TNode

Definition at line 10 of file TNodeTree.h.

Constructor & Destructor Documentation

◆ TNode()

template<class T>
TNodeTree< T >::TNode::TNode ( )
inlineprotected

Definition at line 16 of file TNodeTree.h.

17 {
18 m_Tree = TNULL;
19 m_Next = (T*)this;
20 m_Prev = (T*)this;
22 m_Child = TNULL;
23 }
TNodeTree< T > * m_Tree
Definition TNodeTree.h:40

Member Function Documentation

◆ Child()

template<class T>
T * TNodeTree< T >::TNode::Child ( ) const
inline

Definition at line 37 of file TNodeTree.h.

37{ return m_Child; }

◆ IsChildOfDefaultRoot()

template<class T>
TBOOL TNodeTree< T >::TNode::IsChildOfDefaultRoot ( ) const
inline

Definition at line 26 of file TNodeTree.h.

27 {
28 TASSERT( IsLinked() == TTRUE );
29 return m_Parent == (T*)( &Tree()->m_Root );
30 }
#define TASSERT(X,...)
Definition Defines.h:138
TBOOL IsLinked() const
Definition TNodeTree.h:32
TNodeTree< T > * Tree() const
Definition TNodeTree.h:36

◆ IsLinked()

template<class T>
TBOOL TNodeTree< T >::TNode::IsLinked ( ) const
inline

Definition at line 32 of file TNodeTree.h.

32{ return m_Tree != TNULL; }

◆ Next()

template<class T>
T * TNodeTree< T >::TNode::Next ( ) const
inline

Definition at line 34 of file TNodeTree.h.

34{ return m_Next; }

◆ Parent()

template<class T>
T * TNodeTree< T >::TNode::Parent ( ) const
inline

Definition at line 33 of file TNodeTree.h.

33{ return m_Parent; }

◆ Prev()

template<class T>
T * TNodeTree< T >::TNode::Prev ( ) const
inline

Definition at line 35 of file TNodeTree.h.

35{ return m_Prev; }

◆ Tree()

template<class T>
TNodeTree< T > * TNodeTree< T >::TNode::Tree ( ) const
inline

Definition at line 36 of file TNodeTree.h.

36{ return m_Tree; }

Member Data Documentation

◆ m_Child

template<class T>
T* TNodeTree< T >::TNode::m_Child
protected

Definition at line 44 of file TNodeTree.h.

◆ m_Next

template<class T>
T* TNodeTree< T >::TNode::m_Next
protected

Definition at line 41 of file TNodeTree.h.

◆ m_Parent

template<class T>
T* TNodeTree< T >::TNode::m_Parent
protected

Definition at line 43 of file TNodeTree.h.

◆ m_Prev

template<class T>
T* TNodeTree< T >::TNode::m_Prev
protected

Definition at line 42 of file TNodeTree.h.

◆ m_Tree

template<class T>
TNodeTree<T>* TNodeTree< T >::TNode::m_Tree
protected

Definition at line 40 of file TNodeTree.h.

◆ TNodeTree

template<class T>
friend TNodeTree< T >::TNode::TNodeTree

Definition at line 13 of file TNodeTree.h.


The documentation for this class was generated from the following file: