Public Member Functions | Public Attributes | List of all members
Slope Class Reference

Class for spatial interpolations. More...

#include <computational_cell_2d.hpp>

Inheritance diagram for Slope:
Inheritance graph
[legend]
Collaboration diagram for Slope:
Collaboration graph
[legend]

Public Member Functions

 Slope (ComputationalCell const &x, ComputationalCell const &y)
 Class constructor. More...
 
 Slope (void)
 Default constructor.
 
size_t getChunkSize (void) const
 Returns the size of array needed to store all data. More...
 
vector< double > serialize (void) const
 Convert an object to an array of numbers. More...
 
void unserialize (const vector< double > &data)
 Convert an array of numbers to an object. More...
 
- Public Member Functions inherited from Serializable
virtual ~Serializable (void)
 Class destructor.
 

Public Attributes

ComputationalCell xderivative
 Slope in the x direction.
 
ComputationalCell yderivative
 Slope in the y direction.
 

Detailed Description

Class for spatial interpolations.

Definition at line 130 of file computational_cell_2d.hpp.

Constructor & Destructor Documentation

◆ Slope()

Slope::Slope ( ComputationalCell const &  x,
ComputationalCell const &  y 
)

Class constructor.

Parameters
xThe x derivative
yThe y derivative

Definition at line 147 of file computational_cell_2d.cpp.

Member Function Documentation

◆ getChunkSize()

size_t Slope::getChunkSize ( void  ) const
virtual

Returns the size of array needed to store all data.

Returns
Size of array

Implements Serializable.

Definition at line 210 of file computational_cell_2d.cpp.

◆ serialize()

vector< double > Slope::serialize ( void  ) const
virtual

Convert an object to an array of numbers.

Returns
Array of numbers

Implements Serializable.

Definition at line 215 of file computational_cell_2d.cpp.

◆ unserialize()

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

Convert an array of numbers to an object.

Parameters
dataList of numbers

Implements Serializable.

Definition at line 225 of file computational_cell_2d.cpp.


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