#include <opentrep/DistanceErrorRule.hpp>
Public Member Functions | |
const DistanceErrorScale_T & | getDistanceErrorScale () const |
NbOfErrors_T | getAllowedDistanceError (const NbOfLetters_T &iNbOfLetters) const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &) |
std::string | toShortString () const |
std::string | toString () const |
DistanceErrorRule (const DistanceErrorScale_T &iScale) | |
DistanceErrorRule (const NbOfErrors_T iSize, const NbOfLetters_T iScaleArray[]) | |
DistanceErrorRule (const DistanceErrorScaleArray_T &iScaleArray) | |
Structure modelling a (geographical) distanceerrorrule.
Definition at line 43 of file DistanceErrorRule.hpp.
|
inline |
Main Constructor.
Definition at line 129 of file DistanceErrorRule.hpp.
|
inline |
Constructor.
Definition at line 136 of file DistanceErrorRule.hpp.
|
inline |
Constructor.
Definition at line 147 of file DistanceErrorRule.hpp.
|
inline |
Get the DistanceErrorRule code.
Definition at line 49 of file DistanceErrorRule.hpp.
|
inline |
Get, for a given number of letters, the corresponding allowed (distance) error.
Definition at line 63 of file DistanceErrorRule.hpp.
|
inlinevirtual |
Dump a structure into an output stream.
ostream& | the output stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 87 of file DistanceErrorRule.hpp.
References toString().
|
inlinevirtual |
Read a structure from an input stream.
istream& | the input stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 96 of file DistanceErrorRule.hpp.
|
inline |
Get a short display of the DistanceErrorRule structure.
Definition at line 102 of file DistanceErrorRule.hpp.
Referenced by toString().
|
inlinevirtual |
Get the serialised version of the DistanceErrorRule structure.
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 118 of file DistanceErrorRule.hpp.
References toShortString().
Referenced by toStream().