|
| Branch (const std::string &branch_name, std::vector< ContentType > *handle=nullptr) |
| We create two child data sets, one to hold the successive sizes of the vectors and one to hold all of the data in all of the vectors serially. More...
|
|
void | attach (Reader &f) final override |
| pure virtual method for loading data from the input file More...
|
|
void | load () final override |
| Load a vector from the input file. More...
|
|
void | save () final override |
| Save a vector to the output file. More...
|
|
void | attach (Writer &f) final override |
| pure virtual method for saving structure More...
|
|
| AbstractBranch (const std::string &branch_name, std::vector< ContentType > *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 std::vector< ContentType > & | 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 std::vector< ContentType > &val) |
| Update the in-memory data object with the passed value. More...
|
|
std::vector< ContentType > & | operator* () |
| Access the in-memory data object.
|
|
const std::vector< ContentType > & | operator* () const |
| Access the in-memory data opbject in a const manner.
|
|
std::vector< ContentType > * | operator-> () |
| Pointer access to the in-memory data type.
|
|
const std::vector< ContentType > * | 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 ContentType>
class hdtree::Branch< std::vector< ContentType > >
Our wrapper around std::vector.
- Note
- We assume that the load/save is done sequentially. This assumption is made because (1) it is how HDTree is designed and (2) it allows us to not have to store as much metadata about the vectors.
- Template Parameters
-
ContentType | type of object stored within the std::vector |