Interface to 2-D memory array.
More...
#include <Buffer.h>
|
constexpr | Buffer (const void *data, GDALDataType datatype, const std::array< int, 2 > &shape) |
| Create a buffer object describing a read-only row-major, contiguous data buffer. More...
|
|
constexpr | Buffer (void *data, GDALDataType datatype, const std::array< int, 2 > &shape, GDALAccess access=GA_Update) |
| Create a buffer object describing a row-major, contiguous data buffer. More...
|
|
constexpr | Buffer (const void *data, GDALDataType datatype, const std::array< int, 2 > &shape, const std::array< std::size_t, 2 > &strides) |
| Create a buffer object describing a read-only data buffer. More...
|
|
constexpr | Buffer (void *data, GDALDataType datatype, const std::array< int, 2 > &shape, const std::array< std::size_t, 2 > &strides, GDALAccess access=GA_Update) |
| Create a buffer object describing a data buffer. More...
|
|
constexpr void * | data () |
| Pointer to the start of the data buffer.
|
|
constexpr const void * | data () const |
| Pointer to the start of the data buffer.
|
|
constexpr GDALDataType | datatype () const |
| Datatype identifier.
|
|
constexpr std::size_t | itemsize () const |
| Size in bytes of a single element.
|
|
constexpr const std::array
< int, 2 > & | shape () const |
| Buffer dims (nrows, ncols)
|
|
constexpr int | length () const |
| Number of rows.
|
|
constexpr int | width () const |
| Number of columns.
|
|
constexpr const std::array
< std::size_t, 2 > & | strides () const |
| Stride in bytes between the start of adjacent elements along each dimension.
|
|
constexpr std::size_t | rowstride () const |
| Stride in bytes between the start of adjacent rows.
|
|
constexpr std::size_t | colstride () const |
| Stride in bytes between the start of adjacent columns.
|
|
constexpr GDALAccess | access () const |
| Access mode.
|
|
template<typename T > |
constexpr TypedBuffer< T > | cast () const |
| Cast to typed buffer. More...
|
|
Interface to 2-D memory array.
constexpr isce3::io::gdal::Buffer::Buffer |
( |
const void * |
data, |
|
|
GDALDataType |
datatype, |
|
|
const std::array< int, 2 > & |
shape |
|
) |
| |
Create a buffer object describing a read-only row-major, contiguous data buffer.
- Parameters
-
[in] | data | Pointer to start of data buffer |
[in] | datatype | Datatype identifier |
[in] | shape | Buffer dims (nrows, ncols) |
constexpr isce3::io::gdal::Buffer::Buffer |
( |
void * |
data, |
|
|
GDALDataType |
datatype, |
|
|
const std::array< int, 2 > & |
shape, |
|
|
GDALAccess |
access = GA_Update |
|
) |
| |
Create a buffer object describing a row-major, contiguous data buffer.
- Parameters
-
[in] | data | Pointer to start of data buffer |
[in] | datatype | Datatype identifier |
[in] | shape | Buffer dims (nrows, ncols) |
[in] | access | Access mode |
constexpr isce3::io::gdal::Buffer::Buffer |
( |
const void * |
data, |
|
|
GDALDataType |
datatype, |
|
|
const std::array< int, 2 > & |
shape, |
|
|
const std::array< std::size_t, 2 > & |
strides |
|
) |
| |
Create a buffer object describing a read-only data buffer.
- Parameters
-
[in] | data | Pointer to start of data buffer |
[in] | datatype | Datatype identifier |
[in] | shape | Buffer dims (nrows, ncols) |
[in] | strides | Stride in bytes between the start of adjacent elements along each dimension |
constexpr isce3::io::gdal::Buffer::Buffer |
( |
void * |
data, |
|
|
GDALDataType |
datatype, |
|
|
const std::array< int, 2 > & |
shape, |
|
|
const std::array< std::size_t, 2 > & |
strides, |
|
|
GDALAccess |
access = GA_Update |
|
) |
| |
Create a buffer object describing a data buffer.
- Parameters
-
[in] | data | Pointer to start of data buffer |
[in] | datatype | Datatype identifier |
[in] | shape | Buffer dims (nrows, ncols) |
[in] | strides | Stride in bytes between the start of adjacent elements along each dimension |
[in] | access | Access mode |
template<typename T >
constexpr TypedBuffer< T > isce3::io::gdal::Buffer::cast |
( |
| ) |
const |
Cast to typed buffer.
- Exceptions
-
isce3::except::RuntimeError | if the requested type does not match the underlying buffer datatype |
The documentation for this class was generated from the following files:
- isce/cxx/isce3/io/gdal/Buffer.h
- isce/cxx/isce3/io/gdal/Buffer.icc