Buffer with static type information. More...
#include <Buffer.h>
Public Member Functions | |
| constexpr | TypedBuffer (const T *data, const std::array< int, 2 > &shape) |
| Create a buffer object describing a read-only row-major, contiguous data buffer. More... | |
| constexpr | TypedBuffer (T *data, const std::array< int, 2 > &shape, GDALAccess access=GA_Update) |
| Create a buffer object describing a row-major, contiguous data buffer. More... | |
| constexpr | TypedBuffer (const T *data, 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 | TypedBuffer (T *data, 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 T * | data () |
| Pointer to the start of the data buffer. | |
| constexpr const T * | 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. | |
Buffer with static type information.
| constexpr isce3::io::gdal::TypedBuffer< T >::TypedBuffer | ( | const T * | data, |
| const std::array< int, 2 > & | shape | ||
| ) |
Create a buffer object describing a read-only row-major, contiguous data buffer.
| [in] | data | Pointer to start of data buffer |
| [in] | shape | Buffer dims (nrows, ncols) |
| constexpr isce3::io::gdal::TypedBuffer< T >::TypedBuffer | ( | T * | data, |
| const std::array< int, 2 > & | shape, | ||
| GDALAccess | access = GA_Update |
||
| ) |
Create a buffer object describing a row-major, contiguous data buffer.
| [in] | data | Pointer to start of data buffer |
| [in] | shape | Buffer dims (nrows, ncols) |
| [in] | access | Access mode |
| constexpr isce3::io::gdal::TypedBuffer< T >::TypedBuffer | ( | const T * | data, |
| const std::array< int, 2 > & | shape, | ||
| const std::array< std::size_t, 2 > & | strides | ||
| ) |
Create a buffer object describing a read-only data buffer.
| [in] | data | Pointer to start of data buffer |
| [in] | shape | Buffer dims (nrows, ncols) |
| [in] | strides | Stride in bytes between the start of adjacent elements along each dimension |
| constexpr isce3::io::gdal::TypedBuffer< T >::TypedBuffer | ( | T * | data, |
| 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.
| [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 |
1.8.5.