Config

struct Config : public kernel_launcher::Eval

A particular configuration from a ConfigSpace. This class is essentially a lookup table that maps TunableParams to Values.

Public Functions

void insert(TunableParam k, Value v)

Insert a TunableParam with the associated Value.

inline const Value &operator[](const std::string &name) const

Returns the value that corresponds to the parameter with the given name.

inline const Value &operator[](const TunableParam &param) const

Returns the value that corresponds to the given parameter.

inline const Value &operator[](const ParamExpr &param) const

Returns the value that corresponds to the given parameter.

inline size_t size() const

Returns the number of parameters in this configuration.