cpp-hocon
0.3.0
|
An Abstractconfig_value 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 Abstractconfig_value which contains other values.
Java has no way to express "this has to be an Abstractconfig_value also" other than making Abstractconfig_value an interface which would be aggravating. But we can say we are a config_value.
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::config_delayed_merge_object, hocon::config_delayed_merge, hocon::config_concatenation, and hocon::simple_config_list.
|
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::config_delayed_merge_object, hocon::config_delayed_merge, hocon::config_concatenation, and hocon::simple_config_list.