utils::InputMap

Bidirectional map between sf::Keyboard::Key and std::string. More...

Public Functions

Name

InputMap(std::size_t keySize, std::size_t offset)

void

insert(T t, const std::string & str)

const std::string &

at(T t) const

T

at(const std::string & string) const

Detailed Description

template <typename T >
class utils::InputMap;

Bidirectional map between sf::Keyboard::Key and std::string.

Public Functions Documentation

function InputMap

inline explicit InputMap(
    std::size_t keySize,
    std::size_t offset
)

function insert

inline void insert(
    T t,
    const std::string & str
)

function at

inline const std::string & at(
    T t
) const

Exceptions:

  • std::out_of_range if string is not in the map

function at

inline T at(
    const std::string & string
) const

Exceptions:

  • std::out_of_range if string is not in the map


Updated on 2022-11-13 at 17:21:37 +0100

Last updated