Euphoria
|
eu::core::Table< T > Struct Template Reference
#include <table.h>
Public Types | |
using | Idx = int |
Public Member Functions | |
Table ()=default | |
void | add_row (T d=T()) |
void | clear (T d=T()) |
template<typename TFunc > | |
void | set_all (TFunc f) |
void | add_row (const std::vector< T > &row, T d=T()) |
Add a new row to the table. More... | |
void | expand_width (Idx new_width, T d=T()) |
Expand the table to the new width. More... | |
bool | is_inside (Idx x, Idx y) const |
size_t | get_data_index (const vec2i &pos) const |
Recti | get_indices () const |
Idx | get_width () const |
Idx | get_height () const |
T | operator[] (const vec2i &pos) const |
std::vector< T >::reference | operator[] (const vec2i &pos) |
Static Public Member Functions | |
static Table | from_width_height (Idx width, Idx height, T d=T()) |
static Table | from_height_width (Idx height, Idx width, T d=T()) |
static constexpr Idx | conv (size_t t) |
Detailed Description
Member Typedef Documentation
◆ Idx
template<typename T >
using eu::core::Table< T >::Idx = int |
Constructor & Destructor Documentation
◆ Table()
template<typename T >
|
default |
Member Function Documentation
◆ add_row() [1/2]
template<typename T >
|
inline |
◆ add_row() [2/2]
template<typename T >
|
inline |
◆ clear()
template<typename T >
|
inline |
◆ conv()
template<typename T >
|
inlinestaticconstexpr |
◆ expand_width()
template<typename T >
|
inline |
◆ from_height_width()
template<typename T >
|
inlinestatic |
◆ from_width_height()
template<typename T >
|
inlinestatic |
◆ get_data_index()
template<typename T >
|
inline |
◆ get_height()
template<typename T >
|
inline |
◆ get_indices()
template<typename T >
|
inline |
◆ get_width()
template<typename T >
|
inline |
◆ is_inside()
template<typename T >
|
inline |
◆ operator[]() [1/2]
template<typename T >
|
inline |
◆ operator[]() [2/2]
template<typename T >
|
inline |
◆ set_all()
template<typename T >
template<typename TFunc >
|
inline |
The documentation for this struct was generated from the following file:
- libs/core/src/core/table.h