Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
TreeRow Struct Reference
Collaboration diagram for TreeRow:

Public Member Functions

 TreeRow ()=default
 TreeRow (const QString &first, int second, std::optional< Tree > children=std::nullopt)
TreeRowparentRow () const
void setParentRow (TreeRow *parent)
const std::optional< Tree > & childRows () const
std::optional< Tree > & childRows ()
 TreeRow ()=default
 TreeRow (const QString &first, int second, std::optional< Tree > children=std::nullopt)
TreeRowparentRow () const
void setParentRow (TreeRow *parent)
const std::optional< Tree > & childRows () const
std::optional< Tree > & childRows ()

Public Attributes

QString firstColumn
int secondColumn = 0

Friends

template<size_t I>
decltype(auto) get (const TreeRow &row)
template<size_t I>
decltype(auto) get (const TreeRow &row)

Detailed Description

Definition at line 63 of file main.cpp.

Constructor & Destructor Documentation

◆ TreeRow() [1/4]

TreeRow::TreeRow ( )
default

◆ TreeRow() [2/4]

TreeRow::TreeRow ( const QString & first,
int second,
std::optional< Tree > children = std::nullopt )
inlineexplicit

Definition at line 69 of file main.cpp.

References TreeRow(), and secondColumn.

Referenced by TreeRow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TreeRow() [3/4]

TreeRow::TreeRow ( )
default

◆ TreeRow() [4/4]

TreeRow::TreeRow ( const QString & first,
int second,
std::optional< Tree > children = std::nullopt )
inlineexplicit

Definition at line 69 of file main.cpp.

Member Function Documentation

◆ childRows() [1/4]

std::optional< Tree > & TreeRow::childRows ( )
inline

Definition at line 76 of file main.cpp.

◆ childRows() [2/4]

std::optional< Tree > & TreeRow::childRows ( )
inline

Definition at line 76 of file main.cpp.

◆ childRows() [3/4]

const std::optional< Tree > & TreeRow::childRows ( ) const
inline

Definition at line 75 of file main.cpp.

◆ childRows() [4/4]

const std::optional< Tree > & TreeRow::childRows ( ) const
inline

Definition at line 75 of file main.cpp.

◆ parentRow() [1/2]

TreeRow * TreeRow::parentRow ( ) const
inline

Definition at line 73 of file main.cpp.

◆ parentRow() [2/2]

TreeRow * TreeRow::parentRow ( ) const
inline

Definition at line 73 of file main.cpp.

◆ setParentRow() [1/2]

void TreeRow::setParentRow ( TreeRow * parent)
inline

Definition at line 74 of file main.cpp.

◆ setParentRow() [2/2]

void TreeRow::setParentRow ( TreeRow * parent)
inline

Definition at line 74 of file main.cpp.

◆ get [1/2]

template<size_t I>
decltype(auto) get ( const TreeRow & row)
friend

Definition at line 82 of file main.cpp.

◆ get [2/2]

template<size_t I>
decltype(auto) get ( const TreeRow & row)
friend

Definition at line 82 of file main.cpp.

Member Data Documentation

◆ firstColumn

QString TreeRow::firstColumn

Definition at line 65 of file main.cpp.

◆ secondColumn

int TreeRow::secondColumn = 0

Definition at line 66 of file main.cpp.

Referenced by TreeRow().


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