Template Class EnumeratedFunctor

Class Documentation

template<typename Input, typename Output>
class uitsl::EnumeratedFunctor

This class holds an unordered map from Input to Output. This is done so they can be passed around in template arguments, or wherever else a class might be used, wihtout having to rebuild the map every time.

Public Functions

EnumeratedFunctor() = default
EnumeratedFunctor(const std::unordered_map<Input, Output> &map_)
EnumeratedFunctor(const std::vector<Output> &vect)
Output operator()(const Input &a) const
size_t GetSize() const