Public Member Functions | |
quad_index () | |
empty constructor More... | |
quad_index (unsigned int u0, unsigned int u1, unsigned int u2, unsigned int u3) | |
direct constructor More... | |
unsigned int | u0 () const |
Access first component. More... | |
unsigned int | u1 () const |
Access second component. More... | |
unsigned int | u2 () const |
Access third component. More... | |
unsigned int | u3 () const |
Access fourth component. More... | |
unsigned int & | u0 () |
Access first component. More... | |
unsigned int & | u1 () |
Access second component. More... | |
unsigned int & | u2 () |
Access third component. More... | |
unsigned int & | u3 () |
Access fourth component. More... | |
unsigned int | operator[] (unsigned int k_index) const |
Access component k (0<=k<4) component. More... | |
unsigned int & | operator[] (unsigned int k_index) |
Access component k (0<=k<4) component. More... | |
const unsigned int * | pointer () const |
Get pointer. More... | |
Private Member Functions | |
void | assert_size (unsigned int k) const |
assert that a size_t belongs to [[0,3]] More... | |
Private Attributes | |
unsigned int | internal_u [4] |
internal storage of 4 components = indices of the quad More... | |
cpe::quad_index::quad_index | ( | ) |
empty constructor
References internal_u.
cpe::quad_index::quad_index | ( | unsigned int | u0, |
unsigned int | u1, | ||
unsigned int | u2, | ||
unsigned int | u3 | ||
) |
direct constructor
References internal_u, u0(), u1(), u2(), and u3().
|
private |
assert that a size_t belongs to [[0,3]]
References cpe::string_converter::to_string().
Referenced by operator[]().
unsigned int cpe::quad_index::operator[] | ( | unsigned int | k_index | ) | const |
Access component k (0<=k<4) component.
References assert_size(), and internal_u.
unsigned int & cpe::quad_index::operator[] | ( | unsigned int | k_index | ) |
Access component k (0<=k<4) component.
References assert_size(), and internal_u.
const unsigned int * cpe::quad_index::pointer | ( | ) | const |
Get pointer.
References internal_u.
unsigned int cpe::quad_index::u0 | ( | ) | const |
unsigned int & cpe::quad_index::u0 | ( | ) |
Access first component.
References internal_u.
unsigned int cpe::quad_index::u1 | ( | ) | const |
unsigned int & cpe::quad_index::u1 | ( | ) |
Access second component.
References internal_u.
unsigned int cpe::quad_index::u2 | ( | ) | const |
unsigned int & cpe::quad_index::u2 | ( | ) |
Access third component.
References internal_u.
unsigned int cpe::quad_index::u3 | ( | ) | const |
unsigned int & cpe::quad_index::u3 | ( | ) |
Access fourth component.
References internal_u.
|
private |
internal storage of 4 components = indices of the quad
Referenced by operator[](), pointer(), quad_index(), u0(), u1(), u2(), and u3().