IODA Bundle
odc::codec::CodecLongReal< ByteOrder > Class Template Reference

#include <Real.h>

Inheritance diagram for odc::codec::CodecLongReal< ByteOrder >:
[legend]
Collaboration diagram for odc::codec::CodecLongReal< ByteOrder >:
[legend]

Public Member Functions

 CodecLongReal (api::ColumnType type)
 
 ~CodecLongReal () override
 
bool hasShortRealInternalMissing () const
 
bool hasShortReal2InternalMissing () const
 
- Public Member Functions inherited from odc::core::DataStreamCodec< ByteOrder >
 DataStreamCodec (const std::string &name, api::ColumnType type)
 
void setDataStream (DataStream< ByteOrder > &ds) override
 
void clearDataStream () override
 
void setDataStream (GeneralDataStream &ds)
 
virtual void setDataStream (DataStream< SameByteOrder > &ds)
 
virtual void setDataStream (DataStream< OtherByteOrder > &ds)
 
- Public Member Functions inherited from odc::core::Codec
 Codec (const std::string &name, api::ColumnType type)
 
virtual ~Codec ()
 
virtual std::unique_ptr< Codecclone ()
 
const std::string & name () const
 
char * encode (char *p, const double &d)
 
void setDataStream (GeneralDataStream &ds)
 
virtual void setDataStream (DataStream< SameByteOrder > &ds)
 
virtual void setDataStream (DataStream< OtherByteOrder > &ds)
 
void load (GeneralDataStream &ds)
 
virtual void load (DataStream< SameByteOrder > &ds)
 
virtual void load (DataStream< OtherByteOrder > &ds)
 
void save (GeneralDataStream &ds)
 
virtual void save (DataStream< SameByteOrder > &ds)
 
virtual void save (DataStream< OtherByteOrder > &ds)
 
void resetStats ()
 
void hasMissing (bool h)
 
int32_t hasMissing () const
 
void min (double m)
 
double min () const
 
void max (double m)
 
double max () const
 
void missingValue (double v)
 
double missingValue () const
 
virtual size_t numStrings () const
 
virtual void copyStrings (Codec &rhs)
 
virtual size_t dataSizeDoubles () const
 
virtual void dataSizeDoubles (size_t count)
 

Static Public Member Functions

constexpr static const char * codec_name ()
 

Private Member Functions

unsigned char * encode (unsigned char *p, const double &d) override
 
void decode (double *out) override
 
void skip () override
 
void gatherStats (const double &v) override
 Keep track on internal missing value collisions, to help the CodecOptimizer. More...
 

Private Attributes

bool hasShortRealInternalMissing_
 
bool hasShortReal2InternalMissing_
 

Additional Inherited Members

- Protected Member Functions inherited from odc::core::DataStreamCodec< ByteOrder >
void load (DataStream< ByteOrder > &ds) override
 
void save (DataStream< ByteOrder > &ds) override
 
DataStream< ByteOrder > & ds ()
 
void load (GeneralDataStream &ds)
 
virtual void load (DataStream< SameByteOrder > &ds)
 
virtual void load (DataStream< OtherByteOrder > &ds)
 
void save (GeneralDataStream &ds)
 
virtual void save (DataStream< SameByteOrder > &ds)
 
virtual void save (DataStream< OtherByteOrder > &ds)
 
- Protected Attributes inherited from odc::core::DataStreamCodec< ByteOrder >
DataStream< ByteOrder > * ds_
 
- Protected Attributes inherited from odc::core::Codec
std::string name_
 
int32_t hasMissing_
 
double missingValue_
 
double min_
 
double max_
 
api::ColumnType type_
 

Detailed Description

template<typename ByteOrder>
class odc::codec::CodecLongReal< ByteOrder >

Definition at line 29 of file Real.h.

Constructor & Destructor Documentation

◆ CodecLongReal()

template<typename ByteOrder >
odc::codec::CodecLongReal< ByteOrder >::CodecLongReal ( api::ColumnType  type)
inline

Definition at line 37 of file Real.h.

◆ ~CodecLongReal()

template<typename ByteOrder >
odc::codec::CodecLongReal< ByteOrder >::~CodecLongReal ( )
inlineoverride

Definition at line 42 of file Real.h.

Member Function Documentation

◆ codec_name()

template<typename ByteOrder >
constexpr static const char* odc::codec::CodecLongReal< ByteOrder >::codec_name ( )
inlinestaticconstexpr

Definition at line 33 of file Real.h.

◆ decode()

template<typename ByteOrder >
void odc::codec::CodecLongReal< ByteOrder >::decode ( double *  out)
inlineoverrideprivatevirtual

Implements odc::core::Codec.

Definition at line 56 of file Real.h.

Here is the call graph for this function:

◆ encode()

template<typename ByteOrder >
unsigned char* odc::codec::CodecLongReal< ByteOrder >::encode ( unsigned char *  p,
const double &  d 
)
inlineoverrideprivatevirtual

Implements odc::core::Codec.

Definition at line 49 of file Real.h.

◆ gatherStats()

template<typename ByteOrder >
void odc::codec::CodecLongReal< ByteOrder >::gatherStats ( const double &  v)
inlineoverrideprivatevirtual

Keep track on internal missing value collisions, to help the CodecOptimizer.

Reimplemented from odc::core::Codec.

Definition at line 65 of file Real.h.

Here is the call graph for this function:

◆ hasShortReal2InternalMissing()

template<typename ByteOrder >
bool odc::codec::CodecLongReal< ByteOrder >::hasShortReal2InternalMissing ( ) const
inline

Definition at line 45 of file Real.h.

Here is the caller graph for this function:

◆ hasShortRealInternalMissing()

template<typename ByteOrder >
bool odc::codec::CodecLongReal< ByteOrder >::hasShortRealInternalMissing ( ) const
inline

Definition at line 44 of file Real.h.

Here is the caller graph for this function:

◆ skip()

template<typename ByteOrder >
void odc::codec::CodecLongReal< ByteOrder >::skip ( )
inlineoverrideprivatevirtual

Implements odc::core::Codec.

Definition at line 60 of file Real.h.

Here is the call graph for this function:

Member Data Documentation

◆ hasShortReal2InternalMissing_

template<typename ByteOrder >
bool odc::codec::CodecLongReal< ByteOrder >::hasShortReal2InternalMissing_
private

Definition at line 77 of file Real.h.

◆ hasShortRealInternalMissing_

template<typename ByteOrder >
bool odc::codec::CodecLongReal< ByteOrder >::hasShortRealInternalMissing_
private

Definition at line 76 of file Real.h.


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