LibreOffice Module o3tl (master)
1
|
This is a container convenience class for arrays indexed by enum values. More...
#include <enumarray.hxx>
Public Types | |
typedef enumarray< E, V > | self_type |
typedef enumarray_iterator< self_type > | iterator |
typedef enumarray_const_iterator< self_type > | const_iterator |
typedef V | value_type |
typedef E | key_type |
typedef size_t | size_type |
Public Member Functions | |
const V & | operator[] (E index) const |
V & | operator[] (E index) |
void | fill (V val) |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
V * | data () |
Static Public Member Functions | |
static size_type | size () |
Public Attributes | |
V | detail_values [max_index+1] |
Static Public Attributes | |
static const size_type | max_index = static_cast<size_type>(E::LAST) |
This is a container convenience class for arrays indexed by enum values.
This assumes that the 'enum class' definition
E | the 'enum class' type. |
V | the value type to be stored in the array |
Definition at line 45 of file enumarray.hxx.
typedef enumarray_const_iterator<self_type> o3tl::enumarray< E, V >::const_iterator |
Definition at line 50 of file enumarray.hxx.
typedef enumarray_iterator<self_type> o3tl::enumarray< E, V >::iterator |
Definition at line 49 of file enumarray.hxx.
typedef E o3tl::enumarray< E, V >::key_type |
Definition at line 53 of file enumarray.hxx.
typedef enumarray<E, V> o3tl::enumarray< E, V >::self_type |
Definition at line 48 of file enumarray.hxx.
typedef size_t o3tl::enumarray< E, V >::size_type |
Definition at line 54 of file enumarray.hxx.
typedef V o3tl::enumarray< E, V >::value_type |
Definition at line 52 of file enumarray.hxx.
|
inline |
Definition at line 74 of file enumarray.hxx.
|
inline |
Definition at line 76 of file enumarray.hxx.
|
inline |
Definition at line 79 of file enumarray.hxx.
|
inline |
Definition at line 75 of file enumarray.hxx.
|
inline |
Definition at line 77 of file enumarray.hxx.
|
inline |
Definition at line 70 of file enumarray.hxx.
|
inline |
Definition at line 58 of file enumarray.hxx.
|
inline |
Definition at line 64 of file enumarray.hxx.
|
inlinestatic |
Definition at line 73 of file enumarray.hxx.
Referenced by o3tl::enumarray< PointerStyle, std::unique_ptr< QCursor > >::end().
V o3tl::enumarray< E, V >::detail_values[max_index+1] |
|
static |
Definition at line 56 of file enumarray.hxx.
Referenced by o3tl::enumarray< PointerStyle, std::unique_ptr< QCursor > >::fill().