cartobase
5.1.2
|
High-level converter, reimplementation of aims::Converter. More...
#include <cartobase/type/converter.h>
Public Member Functions | |
Converter (bool rescale=false) | |
Converter (bool rescale, const RescalerInfo &info) | |
virtual | ~Converter () |
OUTP * | operator() (const INP &in) const |
Converts an INP type data to an OUTP data. More... | |
virtual void | convert (const INP &in, OUTP &out) const |
Converts INP into an existing OUTP object. More... | |
Protected Attributes | |
bool | _rescale |
RescalerInfo | _info |
High-level converter, reimplementation of aims::Converter.
Definition at line 220 of file converter.h.
|
inline |
Definition at line 223 of file converter.h.
|
inline |
Definition at line 224 of file converter.h.
|
inlinevirtual |
Definition at line 226 of file converter.h.
|
inlinevirtual |
Converts INP into an existing OUTP object.
The output object must be already allocated with correct size: its contents will be replaced, but no reallocation or resizing will take place. To actually trigger allocation, use the operator () instead.
Definition at line 339 of file converter.h.
References carto::RawConverter< INP, OUTP >::convert().
|
inline |
Converts an INP type data to an OUTP data.
If rescale mode is on, the conversion uses the parameters provided as a RescalerInfo object. If no such object is provided, it tries to use the whole dynamics of the OUTP type (int types).
In any case, all quantification info will be lost, unless put as a scale factor in the header (used for AimsData).
Definition at line 330 of file converter.h.
References carto::ConverterAllocator< INP, OUTP >::alloc().
|
protected |
Definition at line 247 of file converter.h.
|
protected |
Definition at line 246 of file converter.h.