Class that refers to a contiguous sequence of objects, but doesn't control allocated memory buffer and objects lifetime, user is responsible for correct memory management and deallocation.
More...
template<typename T>
class daal::services::interface1::BufferView< T >
- Template Parameters
-
T | Type of an object stored in the buffer |
Creates BufferView from the raw data
- Parameters
-
[in] | buffer | The raw pointer to the buffer |
[in] | bufferSize | The buffer size |
Returns pointer to the underlying buffer serving as element storage
- Returns
- Pointer to the array
Flag indicates that buffer is empty (its size is 0)
- Returns
- Whether the buffer is empty
BufferView getBlock |
( |
size_t |
offset, |
|
|
size_t |
size |
|
) |
| const |
|
inline |
Gets the block of the current buffer
- Parameters
-
[in] | offset | The offset of the block |
[in] | size | The size of the block |
- Returns
- New BufferView object for specified block
const T& operator[] |
( |
size_t |
index | ) |
const |
|
inline |
Const element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Const reference to the element
T& operator[] |
( |
size_t |
index | ) |
|
|
inline |
Element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
Size of a buffer
- Returns
- Size of the buffer
The documentation for this class was generated from the following file: