AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ATreeModelIndex Class Reference

Valid index of ITreeModel. More...

Detailed Description

Valid index of ITreeModel.

Classes

class  Exception
 

Public Member Functions

 ATreeModelIndex (std::size_t row, std::size_t column, std::any userdata) noexcept
 
template<typename T >
as () const
 any_cast the external user data stored in this vertex. More...
 
bool hasValue () const noexcept
 
std::size_t row () const
 row of the vertex relative to it's parent.
 
std::size_t column () const
 column of the vertex relative to it's parent.
 

Static Public Attributes

struct {
ROOT
 Tag type to define root vertex. More...
 

Constructor & Destructor Documentation

◆ ATreeModelIndex()

ATreeModelIndex::ATreeModelIndex ( std::size_t  row,
std::size_t  column,
std::any  userdata 
)
inlineexplicitnoexcept
Parameters
rowrow of the vertex relative to it's parent.
columncolumn of the vertex relative to it's parent.
userdatauserdata stored in this vertex.

Member Function Documentation

◆ as()

template<typename T >
T ATreeModelIndex::as ( ) const
inline

any_cast the external user data stored in this vertex.

See also
mUserdata

Member Data Documentation

◆ 

constexpr struct { ... } ATreeModelIndex::ROOT

Tag type to define root vertex.

Use ATreeModelIndex::ROOT to reference.

#include <AUI/Model/ATreeModelIndex.h>


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