FlowEngine 7.530
Photogrammetry Software Development Kit
|
Holds a (non mutable) non_owning pointer and a count Used to marshal memory buffers as arguments in a safely manner. More...
#include <CommonDef.h>
Public Member Functions | |
ConstBuffer ()=default | |
Creates an empty buffer. | |
ConstBuffer (const T *d, Size s) | |
Creates a const buffer with a const pointer and a size. | |
template<std::size_t N> | |
ConstBuffer (const T(&fixedSizeArray)[N]) | |
Implicit conversion from a fixed-size array. | |
ConstBuffer (const std::vector< T > &v) | |
Implicit conversion from a std::vector. | |
ConstBuffer (std::vector< T > &&v)=delete | |
Prohibits implicit conversion from a temporary std::vector. | |
operator bool () const | |
Evaluates to true if this buffer holds valid data, false otherwise. | |
const T * | begin () const |
Iteration support. | |
const T * | end () const |
Iteration support. | |
const T & | operator[] (std::size_t index) const |
Indexed access. | |
Public Attributes | |
const T * | data = nullptr |
Pointer to the (immutable) data. | |
Size | count = 0 |
Number of elements the pointer points to. | |
Holds a (non mutable) non_owning pointer and a count Used to marshal memory buffers as arguments in a safely manner.
|
default |
Creates an empty buffer.
|
inline |
Creates a const buffer with a const pointer and a size.
|
inline |
Implicit conversion from a fixed-size array.
|
inline |
Implicit conversion from a std::vector.
|
delete |
Prohibits implicit conversion from a temporary std::vector.
|
inline |
Iteration support.
|
inline |
Iteration support.
|
inlineexplicit |
Evaluates to true if this buffer holds valid data, false otherwise.
|
inline |
Indexed access.
Size FlowEngine::ConstBuffer< T >::count = 0 |
Number of elements the pointer points to.
const T* FlowEngine::ConstBuffer< T >::data = nullptr |
Pointer to the (immutable) data.