Fillwave  10.0.0
List of all members | Public Member Functions | Public Attributes | Protected Attributes
flw::flf::TreePtr< T, C > Class Template Reference

Basic tree template class. Enables attaching and detaching nodes. More...

#include <TreePtr.h>

Inheritance diagram for flw::flf::TreePtr< T, C >:

Public Member Functions

TreePtroperator= (const TreePtr &)=delete
 
 TreePtr (const TreePtr &)=delete
 
TreePtroperator= (TreePtr &&)=default
 
 TreePtr (TreePtr &&)=default
 
void attach (std::unique_ptr< T > &&node)
 
template<typename TNode , typename... TArguments>
void attachNew (TArguments...args)
 
void detach (T *node)
 
virtual void onAttached (ITreeNode *)
 
virtual void onDetached ()
 
void detachChildren ()
 
bool isAttachedDetached ()
 

Public Attributes

bool mFlagAttachedDetached
 

Protected Attributes

vec< std::unique_ptr< T > > mChildren
 

Detailed Description

template<class T, class C = ITreeNode>
class flw::flf::TreePtr< T, C >

Basic tree template class. Enables attaching and detaching nodes.

Template Parameters
T- type of the smart pointers kept in this tree
C- base class for this node

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