ISIS Core Library 0.7.2 (api 3.0.0)
Public Member Functions

isis::data::MemChunk< TYPE > Class Template Reference

Chunk class for memory-based buffers. More...

#include <chunk.hpp>

Inheritance diagram for isis::data::MemChunk< TYPE >:
isis::data::Chunk isis::util::_internal::GenericReference< TYPE_TYPE >

Public Member Functions

 MemChunk (size_t nrOfColumns, size_t nrOfRows=1, size_t nrOfSlices=1, size_t nrOfTimesteps=1)
 Create an empty MemChunk with the given size.
template<typename T >
 MemChunk (const T *const org, size_t nrOfColumns, size_t nrOfRows=1, size_t nrOfSlices=1, size_t nrOfTimesteps=1)
 Create a MemChunk as copy of a given raw memory block This will create a MemChunk of the given size and fill it with the data at the given address.
 MemChunk (const Chunk &ref, const scaling_pair &scaling)
 Create a deep copy of a given Chunk.
 MemChunk (const MemChunk< TYPE > &ref)
 MemChunk (const Chunk &ref)
 Create a deep copy of a given Chunk (automatic conversion will be used if datatype does not fit)
MemChunkoperator= (const MemChunk< TYPE > &ref)
 Create a deep copy of a given MemChunk (automatic conversion will be used if datatype does not fit)
MemChunkoperator= (const Chunk &ref)
 Create a deep copy of a given Chunk (automatic conversion will be used if datatype does not fit)

Detailed Description

template<typename TYPE>
class isis::data::MemChunk< TYPE >

Chunk class for memory-based buffers.

Definition at line 287 of file chunk.hpp.


Constructor & Destructor Documentation

template<typename TYPE>
isis::data::MemChunk< TYPE >::MemChunk ( size_t  nrOfColumns,
size_t  nrOfRows = 1,
size_t  nrOfSlices = 1,
size_t  nrOfTimesteps = 1 
) [inline]

Create an empty MemChunk with the given size.

Definition at line 291 of file chunk.hpp.

template<typename TYPE>
template<typename T >
isis::data::MemChunk< TYPE >::MemChunk ( const T *const  org,
size_t  nrOfColumns,
size_t  nrOfRows = 1,
size_t  nrOfSlices = 1,
size_t  nrOfTimesteps = 1 
) [inline]

Create a MemChunk as copy of a given raw memory block This will create a MemChunk of the given size and fill it with the data at the given address.

No range check will be done. An automatic conversion will be done if necessary.

Parameters:
orgpointer to the raw data which shall be copied
nrOfColumns
nrOfRows
nrOfSlices
nrOfTimestepssize of the resulting image

Definition at line 304 of file chunk.hpp.

template<typename TYPE>
isis::data::MemChunk< TYPE >::MemChunk ( const Chunk ref) [inline]

Create a deep copy of a given Chunk (automatic conversion will be used if datatype does not fit)

Definition at line 310 of file chunk.hpp.

template<typename TYPE>
isis::data::MemChunk< TYPE >::MemChunk ( const Chunk ref,
const scaling_pair &  scaling 
) [inline]

Create a deep copy of a given Chunk.

An automatic conversion is used if datatype does not fit

Parameters:
refthe source chunk
scalingthe scaling (scale and offset) to be used if a conversion to the requested type is neccessary.

Definition at line 320 of file chunk.hpp.

template<typename TYPE>
isis::data::MemChunk< TYPE >::MemChunk ( const MemChunk< TYPE > &  ref) [inline]

Definition at line 324 of file chunk.hpp.


Member Function Documentation

template<typename TYPE>
MemChunk& isis::data::MemChunk< TYPE >::operator= ( const Chunk ref) [inline]

Create a deep copy of a given Chunk (automatic conversion will be used if datatype does not fit)

Reimplemented from isis::data::Chunk.

Definition at line 329 of file chunk.hpp.

template<typename TYPE>
MemChunk& isis::data::MemChunk< TYPE >::operator= ( const MemChunk< TYPE > &  ref) [inline]

Create a deep copy of a given MemChunk (automatic conversion will be used if datatype does not fit)

Definition at line 338 of file chunk.hpp.


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