|
| Data (const std::string &path, Reader *input_file=nullptr, 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 | load (h5::Reader &f) final override |
| Load a vector from the input file. More...
|
|
void | save (Writer &f) final override |
| Save a vector to the output file. More...
|
|
void | structure (Writer &f) final override |
| pure virtual method for saving structure More...
|
|
| AbstractData (const std::string &path, Reader *input_file=nullptr, std::vector< ContentType > *handle=nullptr) |
| Define the dataset path and provide an optional handle. More...
|
|
virtual | ~AbstractData () |
| 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...
|
|
| BaseData (const std::string &path) |
| Define the full in-file path to the data set of this data. More...
|
|
virtual | ~BaseData ()=default |
| virtual destructor so inherited classes can be properly destructed.
|
|
template<typename ContentType>
class fire::io::Data< 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 fire 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 |