AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
ATreeModelIndex Class Reference

Valid index of ITreeModel. More...

#include <AUI/Model/ATreeModelIndex.h>

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.
 
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.
 

Detailed Description

Valid index of ITreeModel.

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
inlinenodiscard

any_cast the external user data stored in this vertex.

See also
mUserdata

Member Data Documentation

◆ [struct]

struct { ... } ATreeModelIndex::ROOT

Tag type to define root vertex.

Use ATreeModelIndex::ROOT to reference.


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