|
|
| EngineOptionsMap (const std::shared_ptr< AbstractPipeWriter > &writer) |
| |
|
EngineOptionProxy & | get (const std::string &id) |
| |
|
const EngineOptionProxy & | get (const std::string &id) const |
| |
| bool | contains (const std::string &id) const |
| | Check if the engine has an option with the specified name.
|
| |
| iterator | begin () |
| | Get iterator to the first option.
|
| |
| iterator | end () |
| | Get iterator to one past the last option.
|
| |
| EngineOptionProxy & | operator[] (const std::string &id) |
| | Access option by name using bracket notation.
|
| |
| const EngineOptionProxy & | operator[] (const std::string &id) const |
| | Access option by name using bracket notation (const version).
|
| |
Container and iterator for engine option proxies.
EngineOptionsMap acts as a map-like container populated from engine's option responses during UCI initialization. Access options by name using the [] operator or iterate over all options using begin() and end().
Options are populated automatically as the engine sends its option declarations. It's recommended to call sync() on the EngineInstance to ensure all options are loaded before accessing this map. It's recommended to call sync() before querying options to ensure completeness.
Usage:
instance->sync();
if (instance->options.contains("Hash")) {
instance->options["Hash"] = 256;
}
for (auto& option : instance->options) {
std::cout << option.id() << std::endl;
}
const LoggerTrait & Pretty
Trait that formats log messages for human readability.
Definition: Logger.cpp:165
LoggerBuilder toStd()
Create a logger that outputs to standard output.
Definition: Logger.cpp:176
- See also
- EngineInstance::sync() for populating options