Ocean
|
This class implements a helper class which can be used to initialize a multi-plane frame in the constructor. More...
Public Member Functions | |
PlaneInitializer (const T *constdata, const CopyMode copyMode, const unsigned int dataPaddingElements=0u) | |
Creates a new initializer object for a read-only memory pointer. More... | |
PlaneInitializer (T *data, const CopyMode copyMode, const unsigned int dataPaddingElements=0u) | |
Creates a new initializer object for a writable memory pointer. More... | |
PlaneInitializer (const unsigned int planePaddingElements=0u) | |
Creates a new initializer object for a new plane for which the number of padding elements is known. More... | |
Static Protected Member Functions | |
static std::vector< PlaneInitializer< T > > | createPlaneInitializersWithPaddingElements (const Indices32 &paddingElementsPerPlane) |
Creates plane initializer objects with padding elements only. More... | |
Protected Attributes | |
const T * | constdata_ = nullptr |
The pointer to the read-only source memory, can be nullptr. More... | |
T * | data_ = nullptr |
The pointer to the writable source memory, can be nullptr. More... | |
CopyMode | copyMode_ = CopyMode(0u) |
The copy mode to be applied, unused if constdata_ == nullptr and data_ == nullptr . More... | |
unsigned int | paddingElements_ = 0u |
If a valid memory pointer is provided, the number of padding elements at the end of each source memory row; Otherwise, the number of padding elements at the end row of the new plane, with range [0, infinity) More... | |
Friends | |
class | Frame |
This class implements a helper class which can be used to initialize a multi-plane frame in the constructor.
The class is mainly a temporary storage for memory pointers, copy modes, and number of padding elements.
T | The data type of the frame's element type, can be void if unknown |
|
inline |
Creates a new initializer object for a read-only memory pointer.
constdata | The read-only memory pointer to the plane data, must be valid |
copyMode | The copy mode to be applied when initializing the plane |
dataPaddingElements | The number of padding elements at the end of each row of the given memory pointer, in elements, with range [0, infinity) |
|
inline |
Creates a new initializer object for a writable memory pointer.
data | The writable memory pointer to the plane data, must be valid |
copyMode | The copy mode to be applied when initializing the plane |
dataPaddingElements | The number of padding elements at the end of each row of the given memory pointer, in elements, with range [0, infinity) |
|
inlineexplicit |
Creates a new initializer object for a new plane for which the number of padding elements is known.
planePaddingElements | The number of padding elements at the end of each row of the resulting plane, in elements, with range [0, infinity) |
|
staticprotected |
Creates plane initializer objects with padding elements only.
paddingElementsPerPlane | The padding elements one value for each plane |
|
friend |
|
protected |
The pointer to the read-only source memory, can be nullptr.
|
protected |
The copy mode to be applied, unused if constdata_ == nullptr
and data_ == nullptr
.
|
protected |
The pointer to the writable source memory, can be nullptr.
|
protected |
If a valid memory pointer is provided, the number of padding elements at the end of each source memory row; Otherwise, the number of padding elements at the end row of the new plane, with range [0, infinity)