Public Types | Public Member Functions | List of all members
istd::TIHierarchical< Interface > Class Template Referenceabstract

Common interface to define the hierarchical graph structures. More...

#include <TIHierarchical.h>

Inheritance diagram for istd::TIHierarchical< Interface >:
iprm::CComposedParamsSetComp istd::TChangeDelegator< ibase::IHierarchicalCommand > istd::THierarchicalBase< ibase::IHierarchicalCommand > iqtgui::CHierarchicalCommand

Public Types

enum  HierarchicalFlags { HF_CHILDS_SUPPORTED = 0x01, HF_PARENT_SUPPORTED = 0x02 }
 Flags describing supported features of this hierarchical graph. More...
 
typedef Interface InterfaceType
 

Public Member Functions

virtual int GetHierarchicalFlags () const =0
 Get flags describing supported features of this hierarchical graph. More...
 
virtual int GetChildsCount () const =0
 Get number of childs. More...
 
virtual Interface * GetChild (int index) const =0
 Get child value. More...
 
virtual Interface * GetParent () const =0
 Get access to parent object. More...
 

Detailed Description

template<class Interface>
class istd::TIHierarchical< Interface >

Common interface to define the hierarchical graph structures.

Definition at line 17 of file TIHierarchical.h.

Member Typedef Documentation

template<class Interface >
typedef Interface istd::TIHierarchical< Interface >::InterfaceType

Definition at line 20 of file TIHierarchical.h.

Member Enumeration Documentation

template<class Interface >
enum istd::TIHierarchical::HierarchicalFlags

Flags describing supported features of this hierarchical graph.

Enumerator
HF_CHILDS_SUPPORTED 

If active child information is supported.

HF_PARENT_SUPPORTED 

If active parent information is supported.

It will be inactive for single direction hierarchical graphs.

Definition at line 25 of file TIHierarchical.h.

Member Function Documentation

template<class Interface >
virtual Interface* istd::TIHierarchical< Interface >::GetChild ( int  index) const
pure virtual
template<class Interface >
virtual int istd::TIHierarchical< Interface >::GetChildsCount ( ) const
pure virtual

Get number of childs.

For single direction graph when only parent connection is stored it will be always 0. To check if this feature is supported check HF_CHILDS_SUPPORTED in flags.

Implemented in iqtgui::CHierarchicalCommand, iprm::CComposedParamsSetComp, and istd::THierarchicalBase< ibase::IHierarchicalCommand >.

template<class Interface >
virtual int istd::TIHierarchical< Interface >::GetHierarchicalFlags ( ) const
pure virtual

Get flags describing supported features of this hierarchical graph.

See Also
HierarchicalFlags.

Implemented in iprm::CComposedParamsSetComp, and istd::THierarchicalBase< ibase::IHierarchicalCommand >.

template<class Interface >
virtual Interface* istd::TIHierarchical< Interface >::GetParent ( ) const
pure virtual

Get access to parent object.

For single direction graph when only child connection is stored it will be always NULL. To check if this feature is supported check HF_PARENT_SUPPORTED in flags.

Implemented in iprm::CComposedParamsSetComp, and istd::THierarchicalBase< ibase::IHierarchicalCommand >.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy