Base class that manages buffer memory for read/write operations required by numeric tables.
More...
template<typename DataType = DAAL_DATA_TYPE>
class daal::data_management::interface1::BlockDescriptor< DataType >
void* getAdditionalBufferPtr |
( |
| ) |
const |
|
inline |
Gets a pointer o the additional memory buffer
- Returns
- pointer
DataType* getBlockPtr |
( |
| ) |
const |
|
inline |
Gets a pointer to the buffer
- Returns
- Pointer to the block
services::SharedPtr<DataType> getBlockSharedPtr |
( |
| ) |
const |
|
inline |
Gets a pointer to the buffer
- Returns
- Pointer to the block
size_t getColumnsOffset |
( |
| ) |
const |
|
inline |
Gets the number of columns in the numeric table preceding the first element in the block
- Returns
- columns offset
size_t getNumberOfColumns |
( |
| ) |
const |
|
inline |
Returns the number of columns in the block
- Returns
- Number of columns
size_t getNumberOfRows |
( |
| ) |
const |
|
inline |
Returns the number of rows in the block
- Returns
- Number of rows
size_t getRowsOffset |
( |
| ) |
const |
|
inline |
Gets the number of rows in the numeric table preceding the first element in the block
- Returns
- rows offset
size_t getRWFlag |
( |
| ) |
const |
|
inline |
Gets the flag specifying read/write access to the block
- Returns
- flag
Reset internal values and pointers to zero values
bool resizeBuffer |
( |
size_t |
nColumns, |
|
|
size_t |
nRows, |
|
|
size_t |
auxMemorySize = 0 |
|
) |
| |
|
inline |
Allocates memory of (nColumns * nRows + auxMemorySize) size
- Parameters
-
[in] | nColumns | Number of columns |
[in] | nRows | Number of rows |
[in] | auxMemorySize | Memory size |
- Returns
- true if memory of (nColumns * nRows + auxMemorySize) size is allocated successfully
void setDetails |
( |
size_t |
columnIdx, |
|
|
size_t |
rowIdx, |
|
|
int |
rwFlag |
|
) |
| |
|
inline |
Sets parameters of the block
- Parameters
-
[in] | columnIdx | Index of the first column in the block |
[in] | rowIdx | Index of the first row in the block |
[in] | rwFlag | Flag specifying read/write access to the block |
void setPtr |
( |
DataType * |
ptr, |
|
|
size_t |
nColumns, |
|
|
size_t |
nRows |
|
) |
| |
|
inline |
Sets data pointer to use for in-place calculation
- Parameters
-
[in] | ptr | Pointer to the buffer |
[in] | nColumns | Number of columns |
[in] | nRows | Number of rows |
void setPtr |
( |
services::SharedPtr< byte > * |
pPtr, |
|
|
byte * |
rawPtr, |
|
|
size_t |
nColumns, |
|
|
size_t |
nRows |
|
) |
| |
|
inline |
- Parameters
-
[in] | pPtr | Pointer to the shared pointer that handles the memory |
[in] | rawPtr | Pointer to she shifted memory |
[in] | nColumns | Number of columns |
[in] | nRows | Number of rows |
The documentation for this class was generated from the following file: