Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DBNode.h File Reference

Hierarchical key–value tree with JSON/YAML serialization. More...

#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <memory>
#include <fstream>
#include <sstream>
#include <variant>
#include <initializer_list>
#include <stdexcept>
#include <algorithm>
#include "BlockName.h"
#include "DBNode.tpp"
Include dependency graph for DBNode.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DBNode
 

Detailed Description

Hierarchical key–value tree with JSON/YAML serialization.

DBNode represents a generic hierarchical data structure:

  • keys are BlockName objects,
  • values are scalars (int, double, bool, BlockName) or nested DBNode instances, including lists of nodes.

The class provides:

  • typed hierarchical access via get() / set(),
  • grouping operations via getGroup() / setGroup(),
  • JSON and YAML pretty-printers (to stdout or to an arbitrary stream),
  • simple structural queries (contains(), countChildren(), isList()).

Definition in file DBNode.h.