Chunk class for memory-based buffers.
More...
#include <chunk.hpp>
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)
|
MemChunk & | operator= (const MemChunk< TYPE > &ref) |
| Create a deep copy of a given MemChunk (automatic conversion will be used if datatype does not fit)
|
MemChunk & | operator= (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] |
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:
-
org | pointer to the raw data which shall be copied |
nrOfColumns | |
nrOfRows | |
nrOfSlices | |
nrOfTimesteps | size of the resulting image |
Definition at line 304 of file chunk.hpp.
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.
Create a deep copy of a given Chunk.
An automatic conversion is used if datatype does not fit
- Parameters:
-
ref | the source chunk |
scaling | the scaling (scale and offset) to be used if a conversion to the requested type is neccessary. |
Definition at line 320 of file chunk.hpp.
Member Function Documentation
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.
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:
- /scr/tee1/isis/lib/Core/DataStorage/chunk.hpp