Public Member Functions | List of all members
Serializable Class Referenceabstract

Base class for a serializable object. More...

#include <serializable.hpp>

Inheritance diagram for Serializable:
Inheritance graph
[legend]

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.
 

Detailed Description

Base class for a serializable object.

Definition at line 14 of file serializable.hpp.

Member Function Documentation

◆ getChunkSize()

virtual size_t Serializable::getChunkSize ( void  ) const
pure virtual

Returns the size of array needed to store all data.

Returns
Size of array

Implemented in Slope, Vector2D, ComputationalCell, and Extensive.

Here is the caller graph for this function:

◆ serialize()

virtual vector<double> Serializable::serialize ( void  ) const
pure virtual

Convert an object to an array of numbers.

Returns
Array of numbers

Implemented in Slope, Vector2D, ComputationalCell, and Extensive.

◆ unserialize()

virtual void Serializable::unserialize ( const vector< double > &  data)
pure virtual

Convert an array of numbers to an object.

Parameters
dataList of numbers

Implemented in Slope, Vector2D, ComputationalCell, and Extensive.


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