cartobase  4.5.0
carto::ShallowConverter< INP, OUTP > Class Template Reference

ShallowConverter only differs from the "standard" Converter in the way that it may make shallow copies of objects if input and output types are identical. More...

#include <cartobase/type/converter.h>

Inheritance diagram for carto::ShallowConverter< INP, OUTP >:
Collaboration diagram for carto::ShallowConverter< INP, OUTP >:

Public Member Functions

 ShallowConverter (bool rescale=false)
 
 ShallowConverter (bool rescale, RescalerInfo &info)
 
- Public Member Functions inherited from carto::Converter< INP, OUTP >
 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...
 

Additional Inherited Members

- Protected Attributes inherited from carto::Converter< INP, OUTP >
bool _rescale
 
RescalerInfo _info
 

Detailed Description

template<typename INP, typename OUTP>
class carto::ShallowConverter< INP, OUTP >

ShallowConverter only differs from the "standard" Converter in the way that it may make shallow copies of objects if input and output types are identical.

When INP and OUTP types are different, it is the same as Converter.

Definition at line 256 of file converter.h.

Constructor & Destructor Documentation

template<typename INP , typename OUTP >
carto::ShallowConverter< INP, OUTP >::ShallowConverter ( bool  rescale = false)
inline

Definition at line 259 of file converter.h.

template<typename INP , typename OUTP >
carto::ShallowConverter< INP, OUTP >::ShallowConverter ( bool  rescale,
RescalerInfo info 
)
inline

Definition at line 261 of file converter.h.


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