![]() |
OpendTect-6_4
6.4
|
Byte-level data interpreter. More...
Public Member Functions | |
| DataInterpreter (const DataCharacteristics &, bool ignoreendianness=false) | |
| DataInterpreter (const DataInterpreter< T > &) | |
| void | set (const DataCharacteristics &, bool ignoreendianness=false) |
| use ignoreendianness when you pre-byteswap the data More... | |
| DataInterpreter< T > & | operator= (const DataInterpreter< T > &) |
| DataInterpreter< T > & | operator= (const DataCharacteristics &dc) |
| bool | needSwap () const |
| void | swap (void *buf, od_int64 bufsz_in_elements) const |
| T | get (od_istream &) const |
| T | get (const void *buf, od_int64 nr) const |
| void | put (void *buf, od_int64 nr, T t) const |
| bool | operator== (const DataInterpreter &di) const |
| bool | operator!= (const DataInterpreter &di) const |
| bool | isSUCompat () const |
| int | nrBytes () const |
| DataCharacteristics | dataChar () const |
| template<> | |
| void | set (const DataCharacteristics &dc, bool ignend) |
| template<> | |
| DataInterpreter (const DataCharacteristics &dc, bool ignend) | |
| template<> | |
| DataInterpreter (const DataInterpreter &di) | |
| template<> | |
| DataInterpreter< mTheType > & | operator= (const DataInterpreter< mTheType > &di) |
| template<> | |
| int | nrBytes () const |
| template<> | |
| DataCharacteristics | dataChar () const |
| template<> | |
| bool | needSwap () const |
Static Public Member Functions | |
| static DataInterpreter< T > | create () |
| static DataInterpreter< T > * | create (const DataCharacteristics &, bool alsoifequal) |
| static DataInterpreter< T > * | create (const char *, bool alsoifequal) |
| static DataInterpreter< T > * | create (const IOPar &par, const char *key, bool alsoifequal) |
| static T | get (const DataInterpreter< T > *, od_istream &) |
| static bool | get (const DataInterpreter< T > *, od_istream &, T &) |
Protected Types | |
| typedef T(DataInterpreter< T >::* | GetFn) (const void *, od_int64) const |
| typedef void(DataInterpreter< T >::* | PutFn) (void *, od_int64, T) const |
| typedef void(DataInterpreter< T >::* | SwapFn) (void *, od_int64) const |
Protected Member Functions | |
| void | swap2 (void *, od_int64) const |
| void | swap4 (void *, od_int64) const |
| void | swap8 (void *, od_int64) const |
| T | getS1 (const void *, od_int64) const |
| T | getS2 (const void *, od_int64) const |
| T | getS4 (const void *, od_int64) const |
| T | getS8 (const void *, od_int64) const |
| T | getU1 (const void *, od_int64) const |
| T | getU2 (const void *, od_int64) const |
| T | getU4 (const void *, od_int64) const |
| T | getF (const void *, od_int64) const |
| T | getD (const void *, od_int64) const |
| T | getS2Ibm (const void *, od_int64) const |
| T | getS4Ibm (const void *, od_int64) const |
| T | getFIbm (const void *, od_int64) const |
| T | getS2swp (const void *, od_int64) const |
| T | getS4swp (const void *, od_int64) const |
| T | getS8swp (const void *, od_int64) const |
| T | getU2swp (const void *, od_int64) const |
| T | getU4swp (const void *, od_int64) const |
| T | getFswp (const void *, od_int64) const |
| T | getDswp (const void *, od_int64) const |
| T | getS2Ibmswp (const void *, od_int64) const |
| T | getS4Ibmswp (const void *, od_int64) const |
| T | getFIbmswp (const void *, od_int64) const |
| void | putS1 (void *, od_int64, T) const |
| void | putS2 (void *, od_int64, T) const |
| void | putS4 (void *, od_int64, T) const |
| void | putS8 (void *, od_int64, T) const |
| void | putU1 (void *, od_int64, T) const |
| void | putU2 (void *, od_int64, T) const |
| void | putU4 (void *, od_int64, T) const |
| void | putF (void *, od_int64, T) const |
| void | putD (void *, od_int64, T) const |
| void | putS2Ibm (void *, od_int64, T) const |
| void | putS4Ibm (void *, od_int64, T) const |
| void | putFIbm (void *, od_int64, T) const |
| void | putS2swp (void *, od_int64, T) const |
| void | putS4swp (void *, od_int64, T) const |
| void | putS8swp (void *, od_int64, T) const |
| void | putU2swp (void *, od_int64, T) const |
| void | putU4swp (void *, od_int64, T) const |
| void | putFswp (void *, od_int64, T) const |
| void | putDswp (void *, od_int64, T) const |
| void | putS2Ibmswp (void *, od_int64, T) const |
| void | putS4Ibmswp (void *, od_int64, T) const |
| void | putFIbmswp (void *, od_int64, T) const |
| void | swap0 (void *, od_int64) const |
| T | get0 (const void *, od_int64) const |
| void | put0 (void *, od_int64, T) const |
| void | swpSwap () |
| template<> | |
| void | swpSwap () |
Protected Attributes | |
| GetFn | getfn |
| PutFn | putfn |
| SwapFn | swpfn |
Byte-level data interpreter.
Efficient (one function call overhead) get and set of data, usually in a data buffer. Facility to swap bytes in advance. The interpretation is into/from the template parameter. At present, float, double, int and long long are supported and instantiated.
|
protected |
|
protected |
|
protected |
| DataInterpreter< T >::DataInterpreter | ( | const DataCharacteristics & | , |
| bool | ignoreendianness = false |
||
| ) |
| DataInterpreter< T >::DataInterpreter | ( | const DataInterpreter< T > & | ) |
| DataInterpreter< mTheType >::DataInterpreter | ( | const DataCharacteristics & | dc, |
| bool | ignend | ||
| ) |
| DataInterpreter< mTheType >::DataInterpreter | ( | const DataInterpreter< T > & | di | ) |
|
static |
|
static |
| alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
|
static |
| alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
|
static |
| alsoifequal | determines whether an interpreter should be created if the format in DataChar is identical to the current machine's. |
| DataCharacteristics DataInterpreter< T >::dataChar | ( | ) | const |
| DataCharacteristics DataInterpreter< mTheType >::dataChar | ( | ) | const |
| T DataInterpreter< T >::get | ( | od_istream & | ) | const |
|
static |
|
static |
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
| bool DataInterpreter< T >::needSwap | ( | ) | const |
| bool DataInterpreter< mTheType >::needSwap | ( | ) | const |
| int DataInterpreter< T >::nrBytes | ( | ) | const |
| int DataInterpreter< mTheType >::nrBytes | ( | ) | const |
|
inline |
| DataInterpreter<T>& DataInterpreter< T >::operator= | ( | const DataInterpreter< T > & | ) |
|
inline |
| DataInterpreter< mTheType > & DataInterpreter< mTheType >::operator= | ( | const DataInterpreter< mTheType > & | di | ) |
|
inline |
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void DataInterpreter< mTheType >::set | ( | const DataCharacteristics & | dc, |
| bool | ignend | ||
| ) |
| void DataInterpreter< T >::set | ( | const DataCharacteristics & | , |
| bool | ignoreendianness = false |
||
| ) |
use ignoreendianness when you pre-byteswap the data
|
inline |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019