ACF $AcfVersion:0$
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 >:
istd::TChangeDelegator< ibase::IHierarchicalCommand > iprm::CComposedParamsSetComp

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.
 
virtual int GetChildsCount () const =0
 Get number of children.
 
virtual Interface * GetChild (int index) const =0
 Get child value.
 
virtual Interface * GetParent () const =0
 Get access to parent object.
 

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

◆ InterfaceType

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

Definition at line 20 of file TIHierarchical.h.

Member Enumeration Documentation

◆ HierarchicalFlags

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

◆ GetChild()

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

Get child value.

Implemented in iprm::CComposedParamsSetComp.

◆ GetChildsCount()

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

Get number of children.

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 iprm::CComposedParamsSetComp.

◆ GetHierarchicalFlags()

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.

◆ GetParent()

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.


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