AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ITreeModel< T > Class Template Referenceabstract

Tree model. More...

#include <AUI/Model/ITreeModel.h>

Detailed Description

template<typename T>
class ITreeModel< T >
Template Parameters
TitemAt value (typically AString)

ITreeModel is an interface to a tree data structure used for ATreeView.

Basic implementation of the tree model is available in ATreeModel.

Member Function Documentation

> All members, including inherited

◆ childrenCount()

template<typename T>
virtual size_t ITreeModel< T >::childrenCount ( const ATreeModelIndexOrRoot & vertex)
pure virtual
Parameters
vertexthe vertex to determine the children count of

Implemented in ATreeModel< T >.

◆ indexOfChild()

template<typename T>
virtual ATreeModelIndex ITreeModel< T >::indexOfChild ( size_t row,
size_t column,
const ATreeModelIndexOrRoot & vertex )
pure virtual
Parameters
rowchild row (index)
columnchild column (typically 0)
vertexvertex
Returns
The child of the parent index with specified row and column.

Implemented in ATreeModel< T >.

◆ itemAt()

template<typename T>
virtual T ITreeModel< T >::itemAt ( const ATreeModelIndex & index)
pure virtual

Implemented in ATreeModel< T >.

◆ parent()

template<typename T>
virtual ATreeModelIndexOrRoot ITreeModel< T >::parent ( const ATreeModelIndex & vertex)
pure virtual

Implemented in ATreeModel< T >.