cpp-hocon  0.3.0
Public Member Functions | List of all members
hocon::container Class Referenceabstract

An AbstractConfigValue which contains other values. More...

Inheritance diagram for hocon::container:
hocon::config_concatenation hocon::replaceable_merge_stack hocon::simple_config_list hocon::simple_config_object hocon::config_delayed_merge hocon::config_delayed_merge_object

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...
 

Detailed Description

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.

Member Function Documentation

◆ has_descendant()

virtual bool hocon::container::has_descendant ( shared_value const &  descendant) const
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.

◆ replace_child()

virtual shared_value hocon::container::replace_child ( shared_value const &  child,
shared_value  replacement 
) const
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.


The documentation for this class was generated from the following file: