#include <parent-context.hh>
◆ ParentContext()
| Scroom::Utils::ParentContext::ParentContext |
( |
Context::Ptr |
first_ | ) |
|
|
explicit |
12 :
first(std::move(first_))
13 {
16 }
#define require(expr)
Definition assertions.hh:30
Context::Ptr first
Definition parent-context.hh:28
std::vector< Context::ConstPtr > contexts
Definition parent-context.hh:29
◆ add()
◆ get()
| const std::any & Scroom::Utils::ParentContext::get |
( |
std::string |
name | ) |
const |
|
overridevirtual |
Implements Scroom::Utils::Context.
27 {
29 {
30 try
31 {
32 return context->get(name);
33 }
34 catch(name_not_found&)
35 {
36
37 }
38 }
39
40 throw name_not_found();
41 }
◆ set()
| void Scroom::Utils::ParentContext::set |
( |
std::string |
name, |
|
|
std::any |
value |
|
) |
| |
|
overridevirtual |
◆ try_get()
| std::any Scroom::Utils::ParentContext::try_get |
( |
std::string |
name | ) |
const |
|
overridevirtual |
Implements Scroom::Utils::Context.
44 {
46
48 {
49 result = context->try_get(name);
51 {
52 break;
53 }
54 }
55
57 }
SampleIterator< const uint8_t > result
Definition sampleiterator-tests.cc:94
◆ contexts
◆ first
The documentation for this class was generated from the following files: