GEOS 3.15.0dev
|
#include <DiscreteFrechetDistance.h>
Public Member Functions | |
MatrixStorage (std::size_t numRows, std::size_t numCols, double defaultValue) | |
virtual double | get (std::size_t i, std::size_t j) const =0 |
virtual void | set (std::size_t i, std::size_t j, double value)=0 |
virtual bool | isValueSet (std::size_t i, std::size_t j) const =0 |
Public Attributes | |
std::size_t | m_numRows |
std::size_t | m_numCols |
double | m_defaultValue |
Abstract base class for storing 2d matrix data
|
inline |
Creates an instance of this class
numRows | the number of rows |
numCols | the number of columns |
defaultValue | A default value |
|
pure virtual |
Gets the matrix value at i, j
i | the row index |
j | the column index |
Implemented in geos::algorithm::distance::DiscreteFrechetDistance::RectMatrix, geos::algorithm::distance::DiscreteFrechetDistance::CsrMatrix, and geos::algorithm::distance::DiscreteFrechetDistance::HashMapMatrix.
|
pure virtual |
Gets a flag indicating if the matrix has a set value, e.g. one that is different than MatrixStorage defaultValue.
i | the row index |
j | the column index |
Implemented in geos::algorithm::distance::DiscreteFrechetDistance::RectMatrix, geos::algorithm::distance::DiscreteFrechetDistance::CsrMatrix, and geos::algorithm::distance::DiscreteFrechetDistance::HashMapMatrix.
|
pure virtual |
Sets the matrix value at i, j
i | the row index |
j | the column index |
value | The matrix value to set at i, j |
Implemented in geos::algorithm::distance::DiscreteFrechetDistance::RectMatrix, geos::algorithm::distance::DiscreteFrechetDistance::CsrMatrix, and geos::algorithm::distance::DiscreteFrechetDistance::HashMapMatrix.