|
| Config (clingo_config_t *stats, ProgramId key) |
| Construct from the underlying C API type and a key.
|
|
auto | array () const -> ConfigArray |
| Access the configuration entry as an array.
|
|
auto | at (size_t index) const -> Config |
| Get the configuration entry at the given index in the array.
|
|
auto | operator[] (size_t index) const -> Config |
| Get the configuration entry at the given index in the array.
|
|
auto | map () const -> ConfigMap |
| Access the configuration entry as a map.
|
|
auto | get (std::string_view name) const -> Config |
| Get the configuration entry with the given name in the map.
|
|
auto | operator[] (std::string_view name) const -> Config |
| Get the configuration entry with the given name in the map.
|
|
void | value (std::string_view value) const |
| Set the value of the configuration entry.
|
|
auto | operator= (std::string_view value) const -> Config |
| Set the value of the configuration entry.
|
|
template<class Handler > |
void | add (std::string_view name, std::string_view description, Handler &&handler) const |
| Add a new configuration entry with a custom handler.
|
|
void | add (std::string_view name, std::string_view description) const |
| Add a new configuration entry.
|
|
auto | value () const -> std::optional< std::string_view > |
| Get the value of the configuration entry.
|
|
| ConstConfig (clingo_config_t const *stats, ProgramId key) |
| Construct from the underlying C API type and a key.
|
|
auto | type () const -> ConfigType |
| Get the type of the configuration entry.
|
|
auto | array () const -> ConstConfigArray |
| Access the configuration entry as an array.
|
|
auto | at (size_t index) const -> ConstConfig |
| Get the configuration entry at the given index in the array.
|
|
auto | operator[] (size_t index) const -> ConstConfig |
| Get the configuration entry at the given index in the array.
|
|
auto | map () const -> ConstConfigMap |
| Access the configuration entry as a map.
|
|
auto | get (std::string_view name) const -> ConstConfig |
| Get the configuration entry with the given name in the map.
|
|
auto | operator[] (std::string_view name) const -> ConstConfig |
| Get the configuration entry with the given name in the map.
|
|
auto | value () const -> std::optional< std::string_view > |
| Get the value of the configuration entry.
|
|
auto | operator* () const -> std::optional< std::string_view > |
| Get the value of the configuration entry.
|
|
auto | description () const -> std::string_view |
| Get the description of the configuration entry.
|
|
auto | to_string () const -> std::string |
| Get a string representation of the configuration entry.
|
|
Class modeling a mutable configuration entry.