1 #ifndef convmemvalseries_h 2 #define convmemvalseries_h 38 inline bool isOK()
const;
43 inline bool writable()
const;
45 inline void setValue(
od_int64 idx, T v );
51 inline const T* arr()
const;
54 inline char* storArr();
55 inline const char* storArr()
const;
72 template <
class T>
inline 78 , scaler_( scaler ? scaler->clone() : 0 )
92 template <
class T>
inline 101 template <
class T>
inline 114 template <
class T>
inline 124 template <
class T>
inline 135 template <
class T>
inline 138 if ( sz==
size_ )
return true;
146 template <
class T>
inline 151 template <
class T>
inline 156 template <
class T>
inline 170 template <
class T>
inline 174 ?
reinterpret_cast<const T*
>(
ptr_) : 0;
177 template <
class T>
inline 182 template <
class T>
inline 187 template <
class T>
inline 192 template <
class T>
inline bool handlesUndef() const
Definition: convmemvalseries.h:58
void unSetUdf(void *ptr, od_int64 idx) const
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
bool isUdf(const void *ptr, od_int64 idx) const
od_int64 size_
Definition: convmemvalseries.h:68
void setValue(od_int64 idx, T v)
Definition: convmemvalseries.h:157
#define mCast(tp, v)
Definition: commondefs.h:124
char * ptr_
Definition: convmemvalseries.h:67
#define od_int64
Definition: plftypes.h:36
void setUdf(void *ptr, od_int64 idx) const
Class that handles undefvalues in arrays that are in a format described by a BinDataDesc.
Definition: undefarray.h:39
const T * arr() const
Definition: convmemvalseries.h:171
T value(od_int64 idx) const
Definition: convmemvalseries.h:125
char * storArr()
Definition: convmemvalseries.h:183
Byte-level data interpreter.
Definition: cbvswriter.h:22
byte-level data characteristics of stored data.
Definition: datachar.h:37
virtual double unScale(double) const
Definition: scaler.h:45
bool setSize(od_int64)
Definition: convmemvalseries.h:136
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Interface to a series of values.
Definition: odmemory.h:17
#define mTryAlloc(var, stmt)
Catches bad_alloc and sets ptr to null as normal.
Definition: commondefs.h:241
bool writable() const
Definition: convmemvalseries.h:147
~ConvMemValueSeries()
Definition: convmemvalseries.h:93
Scaling of floating point numbers.
Definition: scaler.h:33
const Scaler * scaler_
Definition: convmemvalseries.h:65
Definition: convmemvalseries.h:28
UndefArrayHandler * undefhandler_
Definition: convmemvalseries.h:62
bool selfSufficient() const
Definition: convmemvalseries.h:47
ValueSeries< T > * clone() const
Definition: convmemvalseries.h:102
BinDataDesc dataDesc() const
Definition: convmemvalseries.h:193
od_int64 size() const
Definition: convmemvalseries.h:152
#define mClass(module)
Definition: commondefs.h:164
ConvMemValueSeries(od_int64 sz, const BinDataDesc &stortype, bool doundef=true, const Scaler *scaler=0)
Definition: convmemvalseries.h:73
virtual double scale(double) const =0
DataInterpreter< T > interpreter_
Definition: convmemvalseries.h:63
Description of binary data.
Definition: bindatadesc.h:43
BinDataDesc rettype_
Definition: convmemvalseries.h:64
bool reSizeable() const
Definition: convmemvalseries.h:48
bool isOK() const
Definition: convmemvalseries.h:115