1 #include <hocon/config_value.hpp> 2 #include <internal/config_util.hpp> 3 #include <internal/unmergeable.hpp> 4 #include <internal/replaceable_merge_stack.hpp> 17 shared_value make_replacement(
resolve_context const& context,
int skipping)
const override;
21 std::vector<shared_value> stack,
24 std::vector<shared_value> unmerged_values()
const override;
26 unwrapped_value unwrapped()
const override;
30 resolve_status get_resolve_status()
const override {
return resolve_status::UNRESOLVED; }
32 bool operator==(
config_value const& other)
const override;
34 shared_value
replace_child(shared_value
const& child, shared_value replacement)
const override;
35 bool has_descendant(shared_value
const& descendant)
const override;
37 static void render(std::vector<shared_value>
const& stack, std::string& s,
int indent_value,
bool at_root, std::string
const&
at_key,
config_render_options options);
41 shared_value new_copy(shared_origin)
const override;
43 bool ignores_fallbacks()
const override;
49 std::vector<shared_value> _stack;
bool has_descendant(shared_value const &descendant) const override
Super-expensive full traversal to see if descendant is anywhere underneath this container.
config_value::type value_type() const override
The type of the value; matches the JSON type schema.
virtual shared_origin const & origin() const
The origin of the value (file, line number, etc.), for debugging and error messages.
virtual std::string render() const
Renders the config value as a HOCON string.
type
The type of a configuration value (following the JSON type schema).
Factory for creating config_document instances.
shared_value replace_child(shared_value const &child, shared_value replacement) const override
Replace a child of this value.
Interface that tags a ConfigValue that is not mergeable until after substitutions are resolved...
shared_config at_key(std::string const &key) const
Places the value inside a config at the given key.
An immutable value, following the JSON type schema.