C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

List of all members
BlockDescriptor< DataType > Class Template Reference

Base class that manages buffer memory for read/write operations required by numeric tables. More...

Class Declaration

template<typename DataType = DAAL_DATA_TYPE>
class daal::data_management::interface1::BlockDescriptor< DataType >

Member Function Documentation

void freeBuffer ( )
inlineprotected

Frees the buffer

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
void reset ( )
inline

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]nColumnsNumber of columns
[in]nRowsNumber of rows
[in]auxMemorySizeMemory 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]columnIdxIndex of the first column in the block
[in]rowIdxIndex of the first row in the block
[in]rwFlagFlag 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]ptrPointer to the buffer
[in]nColumnsNumber of columns
[in]nRowsNumber of rows
void setPtr ( services::SharedPtr< byte > *  pPtr,
byte *  rawPtr,
size_t  nColumns,
size_t  nRows 
)
inline
Parameters
[in]pPtrPointer to the shared pointer that handles the memory
[in]rawPtrPointer to she shifted memory
[in]nColumnsNumber of columns
[in]nRowsNumber of rows

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.