cpp-hocon
0.3.0
|
An AbstractConfigValue which contains other values. More...
Public Member Functions | |
virtual shared_value | replace_child (shared_value const &child, shared_value replacement) const =0 |
Replace a child of this value. More... | |
virtual bool | has_descendant (shared_value const &descendant) const =0 |
Super-expensive full traversal to see if descendant is anywhere underneath this container. More... | |
An AbstractConfigValue which contains other values.
Java has no way to express "this has to be an AbstractConfigValue also" other than making AbstractConfigValue an interface which would be aggravating. But we can say we are a ConfigValue.
Definition at line 12 of file container.hpp.
|
pure virtual |
Super-expensive full traversal to see if descendant is anywhere underneath this container.
Implemented in hocon::simple_config_object, hocon::simple_config_list, hocon::config_delayed_merge_object, hocon::config_delayed_merge, and hocon::config_concatenation.
|
pure virtual |
Replace a child of this value.
CAUTION if replacement is null, delete the child, which may also delete the parent, or make the parent into a non-container.
Implemented in hocon::simple_config_object, hocon::simple_config_list, hocon::config_delayed_merge_object, hocon::config_delayed_merge, and hocon::config_concatenation.