|
| Branch (const std::string &branch_name, AtomicType *handle=nullptr) |
| We don't do any more initialization except which is handled by the AbstractBranch. More...
|
|
void | attach (Reader &f) final override |
| pure virtual method for loading data from the input file More...
|
|
void | load () final override |
| Down to a type that Reader can handle. More...
|
|
void | save () final override |
| Down to a type that io::Writer can handle. More...
|
|
void | attach (Writer &f) final override |
| do NOT persist any structure for atomic types More...
|
|
| AbstractBranch (const std::string &branch_name, AtomicType *handle=nullptr) |
| Define the dataset branch_name and provide an optional handle. More...
|
|
virtual | ~AbstractBranch () |
| Delete our object if we own it, otherwise do nothing. More...
|
|
virtual void | clear () |
| Define the clear function here to handle the most common cases. More...
|
|
virtual const AtomicType & | get () const |
| Get the current in-memory data. More...
|
|
int | version () const |
| Get the version number for the type we are loading from. More...
|
|
virtual void | update (const AtomicType &val) |
| Update the in-memory data object with the passed value. More...
|
|
AtomicType & | operator* () |
| Access the in-memory data object.
|
|
const AtomicType & | operator* () const |
| Access the in-memory data opbject in a const manner.
|
|
AtomicType * | operator-> () |
| Pointer access to the in-memory data type.
|
|
const AtomicType * | operator-> () const |
| Pointer access to the in-memory data type in a const manner.
|
|
| 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.
|
|
| BaseBranch (const BaseBranch &)=delete |
| no copying
|
|
BaseBranch & | operator= (const BaseBranch &)=delete |
| no copying
|
|
template<typename AtomicType>
class hdtree::Branch< AtomicType, std::enable_if_t< is_atomic_v< AtomicType > > >
Branch wrapper for atomic types.
- See also
- io::is_atomic for how we deduce if a type is atomic
Once we finally recurse down to actual fundamental ("atomic") types, we can start actually calling the file load and save methods.