Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxcrt::TreeNodeBase< T > Class Template Reference

#include <tree_node.h>

+ Inheritance diagram for fxcrt::TreeNodeBase< T >:
+ Collaboration diagram for fxcrt::TreeNodeBase< T >:

Public Member Functions

 TreeNodeBase ()=default
 
virtual ~TreeNodeBase ()=default
 
T * GetParent () const
 
T * GetFirstChild () const
 
T * GetLastChild () const
 
T * GetNextSibling () const
 
T * GetPrevSibling () const
 
bool HasChild (const T *child) const
 
T * GetNthChild (int32_t n)
 
void AppendFirstChild (T *child)
 
void AppendLastChild (T *child)
 
void InsertBefore (T *child, T *other)
 
void InsertAfter (T *child, T *other)
 
void RemoveChild (T *child)
 
void RemoveAllChildren ()
 
void RemoveSelfIfParented ()
 

Detailed Description

template<typename T>
class fxcrt::TreeNodeBase< T >

Definition at line 20 of file tree_node.h.

Constructor & Destructor Documentation

◆ TreeNodeBase()

template<typename T >
fxcrt::TreeNodeBase< T >::TreeNodeBase ( )
default

◆ ~TreeNodeBase()

template<typename T >
virtual fxcrt::TreeNodeBase< T >::~TreeNodeBase ( )
virtualdefault

Member Function Documentation

◆ AppendFirstChild()

template<typename T >
void fxcrt::TreeNodeBase< T >::AppendFirstChild ( T * child)
inline

Definition at line 53 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetFirstChild(), and fxcrt::TreeNodeBase< T >::GetLastChild().

Referenced by fxcrt::TreeNodeBase< T >::InsertAfter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AppendLastChild()

template<typename T >
void fxcrt::TreeNodeBase< T >::AppendLastChild ( T * child)
inline

Definition at line 67 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetFirstChild(), and fxcrt::TreeNodeBase< T >::GetLastChild().

Referenced by fxcrt::TreeNodeBase< T >::InsertBefore().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFirstChild()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetFirstChild ( ) const
inline

Definition at line 26 of file tree_node.h.

Referenced by fxcrt::TreeNodeBase< T >::AppendFirstChild(), fxcrt::TreeNodeBase< T >::AppendLastChild(), fxcrt::TreeNodeBase< T >::GetNthChild(), fxcrt::TreeNodeBase< T >::InsertBefore(), fxcrt::TreeNodeBase< T >::RemoveAllChildren(), and fxcrt::TreeNodeBase< T >::RemoveChild().

+ Here is the caller graph for this function:

◆ GetLastChild()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetLastChild ( ) const
inline

Definition at line 29 of file tree_node.h.

Referenced by fxcrt::TreeNodeBase< T >::AppendFirstChild(), fxcrt::TreeNodeBase< T >::AppendLastChild(), fxcrt::TreeNodeBase< T >::InsertAfter(), and fxcrt::TreeNodeBase< T >::RemoveChild().

+ Here is the caller graph for this function:

◆ GetNextSibling()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetNextSibling ( ) const
inline

Definition at line 32 of file tree_node.h.

◆ GetNthChild()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetNthChild ( int32_t n)
inline

Definition at line 43 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetFirstChild().

+ Here is the call graph for this function:

◆ GetParent()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetParent ( ) const
inline

Definition at line 25 of file tree_node.h.

Referenced by fxcrt::TreeNodeBase< T >::RemoveSelfIfParented().

+ Here is the caller graph for this function:

◆ GetPrevSibling()

template<typename T >
T * fxcrt::TreeNodeBase< T >::GetPrevSibling ( ) const
inline

Definition at line 35 of file tree_node.h.

◆ HasChild()

template<typename T >
bool fxcrt::TreeNodeBase< T >::HasChild ( const T * child) const
inline

Definition at line 39 of file tree_node.h.

Referenced by fxcrt::TreeNodeBase< T >::InsertAfter(), fxcrt::TreeNodeBase< T >::InsertBefore(), and fxcrt::TreeNodeBase< T >::RemoveChild().

+ Here is the caller graph for this function:

◆ InsertAfter()

template<typename T >
void fxcrt::TreeNodeBase< T >::InsertAfter ( T * child,
T * other )
inline

Definition at line 99 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::AppendFirstChild(), fxcrt::TreeNodeBase< T >::GetLastChild(), and fxcrt::TreeNodeBase< T >::HasChild().

+ Here is the call graph for this function:

◆ InsertBefore()

template<typename T >
void fxcrt::TreeNodeBase< T >::InsertBefore ( T * child,
T * other )
inline

Definition at line 81 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::AppendLastChild(), fxcrt::TreeNodeBase< T >::GetFirstChild(), and fxcrt::TreeNodeBase< T >::HasChild().

+ Here is the call graph for this function:

◆ RemoveAllChildren()

template<typename T >
void fxcrt::TreeNodeBase< T >::RemoveAllChildren ( )
inline

Definition at line 136 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetFirstChild(), and fxcrt::TreeNodeBase< T >::RemoveChild().

+ Here is the call graph for this function:

◆ RemoveChild()

template<typename T >
void fxcrt::TreeNodeBase< T >::RemoveChild ( T * child)
inline

Definition at line 117 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetFirstChild(), fxcrt::TreeNodeBase< T >::GetLastChild(), and fxcrt::TreeNodeBase< T >::HasChild().

Referenced by fxcrt::TreeNodeBase< T >::RemoveAllChildren().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveSelfIfParented()

template<typename T >
void fxcrt::TreeNodeBase< T >::RemoveSelfIfParented ( )
inline

Definition at line 141 of file tree_node.h.

References fxcrt::TreeNodeBase< T >::GetParent().

+ Here is the call graph for this function:

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