MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
BinaryTreeNode< T > Class Template Reference

#include <binarytree.h>

Public Member Functions

 BinaryTreeNode ()
 
 BinaryTreeNode (T *obj)
 
 BinaryTreeNode (T *obj, BinaryTreeNode< T > *father, BinaryTreeNode< T > *leftChild, BinaryTreeNode< T > *rightChild)
 
T * getObject ()
 
BinaryTreeNode< T > * getFather ()
 
BinaryTreeNode< T > * getLeftChild ()
 
BinaryTreeNode< T > * getRightChild ()
 
void setObject (T *obj)
 
void setFather (BinaryTreeNode< T > *node)
 
void setLeftChild (BinaryTreeNode< T > *node)
 
void setRightChild (BinaryTreeNode< T > *node)
 

Protected Attributes

T * m_object
 
BinaryTreeNode< T > * m_father
 
BinaryTreeNode< T > * m_leftChild
 
BinaryTreeNode< T > * m_rightChild
 

Detailed Description

template<typename T>
class BinaryTreeNode< T >

Definition at line 16 of file binarytree.h.

Constructor & Destructor Documentation

◆ BinaryTreeNode() [1/3]

template<typename T >
BinaryTreeNode< T >::BinaryTreeNode ( )
inline

Definition at line 1 of file binarytree.h.

18 {
19 m_object = nullptr;
20 m_father = nullptr;
21 m_leftChild = nullptr;
22 m_rightChild = nullptr;
23 }
BinaryTreeNode< T > * m_leftChild
Definition: binarytree.h:53
BinaryTreeNode< T > * m_father
Definition: binarytree.h:52
BinaryTreeNode< T > * m_rightChild
Definition: binarytree.h:54

◆ BinaryTreeNode() [2/3]

template<typename T >
BinaryTreeNode< T >::BinaryTreeNode ( T *  obj)
inlineexplicit

Definition at line 1 of file binarytree.h.

25 {
26 m_object = obj;
27 m_father = nullptr;
28 m_leftChild = nullptr;
29 m_rightChild = nullptr;
30 }

◆ BinaryTreeNode() [3/3]

template<typename T >
BinaryTreeNode< T >::BinaryTreeNode ( T *  obj,
BinaryTreeNode< T > *  father,
BinaryTreeNode< T > *  leftChild,
BinaryTreeNode< T > *  rightChild 
)
inline

Definition at line 1 of file binarytree.h.

32 {
33 m_object = obj;
34 m_father = father;
35 m_leftChild = leftChild;
36 m_rightChild = rightChild;
37 }

Member Function Documentation

◆ getFather()

template<typename T >
BinaryTreeNode< T > * BinaryTreeNode< T >::getFather ( )
inline

Definition at line 41 of file binarytree.h.

41{ return m_father; }

◆ getLeftChild()

template<typename T >
BinaryTreeNode< T > * BinaryTreeNode< T >::getLeftChild ( )
inline

Definition at line 42 of file binarytree.h.

42{ return m_leftChild; }

◆ getObject()

template<typename T >
T * BinaryTreeNode< T >::getObject ( )
inline

Definition at line 40 of file binarytree.h.

40{ return m_object; }

◆ getRightChild()

template<typename T >
BinaryTreeNode< T > * BinaryTreeNode< T >::getRightChild ( )
inline

Definition at line 43 of file binarytree.h.

43{ return m_rightChild; }

◆ setFather()

template<typename T >
void BinaryTreeNode< T >::setFather ( BinaryTreeNode< T > *  node)
inline

Definition at line 46 of file binarytree.h.

46{ m_father = node; }

◆ setLeftChild()

template<typename T >
void BinaryTreeNode< T >::setLeftChild ( BinaryTreeNode< T > *  node)
inline

Definition at line 47 of file binarytree.h.

47{ m_leftChild = node; }

◆ setObject()

template<typename T >
void BinaryTreeNode< T >::setObject ( T *  obj)
inline

Definition at line 45 of file binarytree.h.

45{ m_object = obj; }

◆ setRightChild()

template<typename T >
void BinaryTreeNode< T >::setRightChild ( BinaryTreeNode< T > *  node)
inline

Definition at line 48 of file binarytree.h.

48{ m_rightChild = node; }

Member Data Documentation

◆ m_father

template<typename T >
BinaryTreeNode<T>* BinaryTreeNode< T >::m_father
protected

Definition at line 52 of file binarytree.h.

◆ m_leftChild

template<typename T >
BinaryTreeNode<T>* BinaryTreeNode< T >::m_leftChild
protected

Definition at line 53 of file binarytree.h.

◆ m_object

template<typename T >
T* BinaryTreeNode< T >::m_object
protected

Definition at line 51 of file binarytree.h.

◆ m_rightChild

template<typename T >
BinaryTreeNode<T>* BinaryTreeNode< T >::m_rightChild
protected

Definition at line 54 of file binarytree.h.


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