#include <DataImpl.h>
Inheritance diagram for MetNoFimex::DataImpl< C >:
Public Member Functions | |
DataImpl (long length) | |
constructor where the array will be automatically allocated | |
DataImpl (boost::shared_array< C > array, long length) | |
virtual | ~DataImpl () |
virtual size_t | size () const |
size of the data | |
virtual int | bytes_for_one () const |
sizeof the data-impl datatype | |
virtual void * | getDataPtr () |
virtual void | toStream (std::ostream &os, std::string separator="") const |
printing of the current data to ostream, with optional separator | |
virtual const boost::shared_array< C > | asBase () const |
get the datapointer of the data | |
template<typename T> | |
const boost::shared_array< T > | as () const |
template<typename T> | |
boost::shared_array< T > | as () |
virtual const boost::shared_array< char > | asConstChar () const |
retrieve data as char | |
virtual boost::shared_array< char > | asChar () |
retrieve data as char | |
virtual const boost::shared_array< short > | asConstShort () const |
retrieve data as short | |
virtual boost::shared_array< short > | asShort () |
retrieve data as short | |
virtual const boost::shared_array< int > | asConstInt () const |
retrieve data as int | |
virtual boost::shared_array< int > | asInt () |
retrieve data as int | |
virtual const boost::shared_array< float > | asConstFloat () const |
retrieve data as float | |
virtual boost::shared_array< float > | asFloat () |
retrieve data as float (eventually copy) | |
virtual const boost::shared_array< double > | asConstDouble () const |
retrieve data as double | |
virtual boost::shared_array< double > | asDouble () |
retrieve data as double | |
virtual std::string | asString (std::string separator="") const |
retrieve the whole array as a string (with possible separator) | |
virtual void | setValue (long pos, double val) |
set a value at the desired position | |
virtual void | setValues (size_t startPos, const Data &data, size_t first=0, size_t last=-1) throw (CDMException) |
virtual boost::shared_ptr< Data > | slice (std::vector< size_t > orgDimSize, std::vector< size_t > startDims, std::vector< size_t > outputDimSize) throw (CDMException) |
get a slice of the data | |
virtual boost::shared_ptr< Data > | convertDataType (double oldFill, double oldScale, double oldOffset, CDMDataType newType, double newFill, double newScale, double newOffset) throw (CDMException) |
convert the datatype from one type,fill,scale,offset to another | |
template<class InputIterator> | |
void | setValues (InputIterator first, InputIterator last, size_t dataStartPos=0) throw (CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
template<> | |
void | setValues (size_t startPos, const Data &data, size_t first, size_t last) throw(CDMException) |
|
constructor where the array will be automatically allocated
|
|
|
|
|
|
|
|
general conversion function, not in base since template methods not allowed |
|
get the datapointer of the data
|
|
retrieve data as char
Implements MetNoFimex::Data. |
|
retrieve data as char
Implements MetNoFimex::Data. |
|
retrieve data as double
Implements MetNoFimex::Data. |
|
retrieve data as float
Implements MetNoFimex::Data. |
|
retrieve data as int
Implements MetNoFimex::Data. |
|
retrieve data as short
Implements MetNoFimex::Data. |
|
retrieve data as double
Implements MetNoFimex::Data. |
|
retrieve data as float (eventually copy)
Implements MetNoFimex::Data. |
|
retrieve data as int
Implements MetNoFimex::Data. |
|
retrieve data as short
Implements MetNoFimex::Data. |
|
retrieve the whole array as a string (with possible separator)
Implements MetNoFimex::Data. |
|
sizeof the data-impl datatype
Implements MetNoFimex::Data. |
|
convert the datatype from one type,fill,scale,offset to another
Implements MetNoFimex::Data. |
|
Implements MetNoFimex::Data. |
|
set a value at the desired position
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
set the values of the data by the input-iterator |
|
set the values from another Data implementation
Implements MetNoFimex::Data. |
|
size of the data
Implements MetNoFimex::Data. |
|
get a slice of the data This slices a multidimensional chunk out of the data. All parameters must be vectors of the same size (dimension of array). The first dimension is the fastest moving index (fortran arrays)
Implements MetNoFimex::Data. |
|
printing of the current data to ostream, with optional separator
Implements MetNoFimex::Data. |