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

Valid index of ITreeModel.

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

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
See also
mUserdata

Member Data Documentation#

◆ [struct]#

struct { ... } ATreeModelIndex::ROOT

Use ATreeModelIndex::ROOT to reference.