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

List of all members
DataBlock Class Reference

Class that stores a pointer to a byte array and its size. Not responsible for memory management. More...

Class Declaration

Constructor & Destructor Documentation

DataBlock ( )
inline

Default constructor. Creates an empty DataBlock of zero size with a zero pointer to a byte array

DataBlock ( byte *  ptr,
size_t  size 
)
inline

Constructor. Creates DataBlock with a user-defined byte array

Parameters
ptrPointer to the byte array
sizeSize of the byte array
DataBlock ( const services::SharedPtr< byte > &  ptr,
size_t  size 
)
inline

Constructor. Creates DataBlock with a user-defined byte array

Parameters
ptrPointer to the byte array
sizeSize of the byte array
DataBlock ( size_t  size)
inline

Constructor. Creates an empty DataBlock of a predefined size

Parameters
sizeSize of the byte array
DataBlock ( const DataBlock block)
inline

Copy constructor. Copies a pointer and the size stored in another DataBlock

Parameters
blockReference to DataBlock

Member Function Documentation

virtual byte* getPtr ( ) const
inlinevirtual

Returns a pointer to a byte array stored in DataBlock

Returns
Pointer to the byte array stored in DataBlock

Implements DataBlockIface.

virtual services::SharedPtr<byte> getSharedPtr ( ) const
inlinevirtual

Returns a pointer to a byte array stored in DataBlock

Returns
Pointer to the byte array stored in DataBlock

Implements DataBlockIface.

virtual size_t getSize ( ) const
inlinevirtual

Returns the size of a byte array stored in DataBlock

Returns
Size of the byte array stored in DataBlock

Implements DataBlockIface.

virtual void setPtr ( byte *  ptr)
inlinevirtual

Sets a pointer to a byte array

Parameters
[in]ptrPointer to the byte array

Implements DataBlockIface.

virtual void setPtr ( const services::SharedPtr< byte > &  ptr)
inlinevirtual

Sets a pointer to a byte array

Parameters
[in]ptrPointer to the byte array

Implements DataBlockIface.

virtual void setSize ( size_t  size)
inlinevirtual

Sets the size of a byte array

Parameters
[in]sizeSize of the byte array

Implements DataBlockIface.


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

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