textwolf
0.2
|
Character map for fast typing of a character byte. More...
#include <char.hpp>
Public Types | |
enum | Constant { nullvalue =nullvalue_ } |
typedef RESTYPE | valuetype |
Public Member Functions | |
CharMap () | |
Constructor. More... | |
CharMap & | operator() (unsigned char from, unsigned char to, valuetype value) |
Define the values of the elements in the interval [from,to]. More... | |
CharMap & | operator() (unsigned char at, valuetype value) |
Define the values of the single element at 'at'. More... | |
valuetype | operator[] (unsigned char ii) const |
Read the element assigned to 'ii'. More... | |
Character map for fast typing of a character byte.
RESTYPE | result type of the map |
nullvalue_ | default intitialization value of the map |
RANGE | domain of the input values of the map |
typedef RESTYPE textwolf::CharMap< RESTYPE, nullvalue_, RANGE >::valuetype |
enum textwolf::CharMap::Constant |
|
inline |
Constructor.
|
inline |
Define the values of the elements in the interval [from,to].
[in] | from | start of the input intervall (belongs also to the input) |
[in] | to | end of the input intervall (belongs also to the input) |
[in] | value | value assigned to all elements in [from,to] |
|
inline |
Define the values of the single element at 'at'.
[in] | at | the input element |
[in] | value | value assigned to the element 'at' |
|
inline |
Read the element assigned to 'ii'.
[in] | ii | the input element queried |