#include <single-context.hh>
|
| std::map< std::string, std::any > | content |
| |
◆ get()
| const std::any & Scroom::Utils::SingleContext::get |
( |
std::string |
name | ) |
const |
|
overridevirtual |
Implements Scroom::Utils::Context.
25 {
27
29 {
30 throw name_not_found();
31 }
32
33 return item->second;
34 }
std::map< std::string, std::any > content
Definition single-context.hh:25
◆ set()
| void Scroom::Utils::SingleContext::set |
( |
std::string |
name, |
|
|
std::any |
value |
|
) |
| |
|
overridevirtual |
Implements Scroom::Utils::Context.
16 {
17 auto [
it, added] =
content.insert({std::move(name), std::move(
value)});
18 if(!added)
19 {
20 throw name_exists();
21 }
22 }
const uint8_t value
Definition blob-tests.cc:114
SampleIterator< const uint8_t > it(testData, 0, bps)
◆ try_get()
| std::any Scroom::Utils::SingleContext::try_get |
( |
std::string |
name | ) |
const |
|
overridevirtual |
◆ content
| std::map<std::string, std::any> Scroom::Utils::SingleContext::content |
|
private |
The documentation for this class was generated from the following files: