HDTree  0.5.2
HDTree C++ API
hdtree::BaseBranch Class Referenceabstract

Empty data base allowing recursion. More...

#include <AbstractBranch.h>

Inheritance diagram for hdtree::BaseBranch:
[legend]
Collaboration diagram for hdtree::BaseBranch:
[legend]

Public Member Functions

 BaseBranch (const std::string &full_name)
 define the full name of the branch
 
virtual ~BaseBranch ()=default
 virtual destructor so inherited classes can be properly destructed.
 
virtual void attach (Reader &f)=0
 pure virtual method for loading data from the input file More...
 
virtual void load ()=0
 
virtual void attach (Writer &f)=0
 we should persist our hierarchy into the output file More...
 
virtual void save ()=0
 pure virtual method for saving the current data More...
 
virtual void clear ()=0
 pure virtual method for resetting the current data to a blank state
 
 BaseBranch (const BaseBranch &)=delete
 no copying
 
BaseBranchoperator= (const BaseBranch &)=delete
 no copying
 

Protected Attributes

std::string name_
 name of branch
 

Detailed Description

Empty data base allowing recursion.

This does not have the type information of the data stored in any of the derived datasets, it simply instructs the derived data sets to define a load and save mechanism for loading/saving the dataset from/to the file.

Note
Users should never interact with this class.

Member Function Documentation

◆ attach() [1/2]

◆ attach() [2/2]

◆ save()


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