Base class for a serializable object. More...
#include <serializable.hpp>

Public Member Functions | |
| virtual size_t | getChunkSize (void) const =0 |
| Returns the size of array needed to store all data. More... | |
| virtual vector< double > | serialize (void) const =0 |
| Convert an object to an array of numbers. More... | |
| virtual void | unserialize (const vector< double > &data)=0 |
| Convert an array of numbers to an object. More... | |
| virtual | ~Serializable (void) |
| Class destructor. | |
Base class for a serializable object.
Definition at line 14 of file serializable.hpp.
|
pure virtual |
Returns the size of array needed to store all data.
Implemented in Slope, Vector2D, ComputationalCell, and Extensive.

|
pure virtual |
Convert an object to an array of numbers.
Implemented in Slope, Vector2D, ComputationalCell, and Extensive.
|
pure virtual |
Convert an array of numbers to an object.
| data | List of numbers |
Implemented in Slope, Vector2D, ComputationalCell, and Extensive.
1.8.13