neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::item_index< ModelIndexType > Class Template Reference

#include <item_index.hpp>

Public Types

typedef self_type abstract_type
 
typedef uint32_t value_type
 
typedef value_type row_type
 
typedef value_type column_type
 
typedef std::optional< row_typeoptional_row_type
 
typedef std::optional< column_typeoptional_column_type
 

Public Member Functions

 item_index ()
 
 item_index (row_type aRow)
 
 item_index (row_type aRow, column_type aColumn)
 
index_type & operator+= (const item_index &aRhs)
 
index_type & operator-= (const item_index &aRhs)
 
row_type row () const
 
index_type with_row (row_type aRow) const
 
void set_row (row_type aRow)
 
column_type column () const
 
index_type with_column (column_type aColumn) const
 
void set_column (column_type aColumn)
 

Detailed Description

template<typename ModelIndexType>
class neogfx::item_index< ModelIndexType >

Definition at line 29 of file item_index.hpp.

Member Typedef Documentation

◆ abstract_type

template<typename ModelIndexType >
typedef self_type neogfx::item_index< ModelIndexType >::abstract_type

Definition at line 34 of file item_index.hpp.

◆ column_type

template<typename ModelIndexType >
typedef value_type neogfx::item_index< ModelIndexType >::column_type

Definition at line 38 of file item_index.hpp.

◆ optional_column_type

template<typename ModelIndexType >
typedef std::optional<column_type> neogfx::item_index< ModelIndexType >::optional_column_type

Definition at line 40 of file item_index.hpp.

◆ optional_row_type

template<typename ModelIndexType >
typedef std::optional<row_type> neogfx::item_index< ModelIndexType >::optional_row_type

Definition at line 39 of file item_index.hpp.

◆ row_type

template<typename ModelIndexType >
typedef value_type neogfx::item_index< ModelIndexType >::row_type

Definition at line 37 of file item_index.hpp.

◆ value_type

template<typename ModelIndexType >
typedef uint32_t neogfx::item_index< ModelIndexType >::value_type

Definition at line 36 of file item_index.hpp.

Constructor & Destructor Documentation

◆ item_index() [1/3]

template<typename ModelIndexType >
neogfx::item_index< ModelIndexType >::item_index ( )
inline

Definition at line 42 of file item_index.hpp.

◆ item_index() [2/3]

template<typename ModelIndexType >
neogfx::item_index< ModelIndexType >::item_index ( row_type  aRow)
inline

Definition at line 46 of file item_index.hpp.

◆ item_index() [3/3]

template<typename ModelIndexType >
neogfx::item_index< ModelIndexType >::item_index ( row_type  aRow,
column_type  aColumn 
)
inline

Definition at line 50 of file item_index.hpp.

Member Function Documentation

◆ column()

template<typename ModelIndexType >
column_type neogfx::item_index< ModelIndexType >::column ( ) const
inline

Definition at line 80 of file item_index.hpp.

◆ operator+=()

template<typename ModelIndexType >
index_type & neogfx::item_index< ModelIndexType >::operator+= ( const item_index< ModelIndexType > &  aRhs)
inline

Definition at line 55 of file item_index.hpp.

◆ operator-=()

template<typename ModelIndexType >
index_type & neogfx::item_index< ModelIndexType >::operator-= ( const item_index< ModelIndexType > &  aRhs)
inline

Definition at line 61 of file item_index.hpp.

◆ row()

template<typename ModelIndexType >
row_type neogfx::item_index< ModelIndexType >::row ( ) const
inline

Definition at line 68 of file item_index.hpp.

◆ set_column()

template<typename ModelIndexType >
void neogfx::item_index< ModelIndexType >::set_column ( column_type  aColumn)
inline

Definition at line 88 of file item_index.hpp.

◆ set_row()

template<typename ModelIndexType >
void neogfx::item_index< ModelIndexType >::set_row ( row_type  aRow)
inline

Definition at line 76 of file item_index.hpp.

◆ with_column()

template<typename ModelIndexType >
index_type neogfx::item_index< ModelIndexType >::with_column ( column_type  aColumn) const
inline

Definition at line 84 of file item_index.hpp.

◆ with_row()

template<typename ModelIndexType >
index_type neogfx::item_index< ModelIndexType >::with_row ( row_type  aRow) const
inline

Definition at line 72 of file item_index.hpp.


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