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

List of all members
DataCollection Class Reference

Class that provides functionality of Collection container for objects derived from SerializationIface interface and implements SerializationIface itself. More...

Class Declaration

Constructor & Destructor Documentation

Default constructor

DataCollection ( const DataCollection other)

Copy constructor

DataCollection ( size_t  n)

Constructor with a defined number of elements

Parameters
[in]nNumber of elements

Member Function Documentation

void clear ( )

Clears a collection: removes an array, sets the size and capacity to 0

services::Status deserializeImpl ( const interface1::OutputDataArchive archive)
inlinevirtual

Interfaces for the implementation of deserialization

Parameters
[in]archiveStorage for a deserialized object or data structure

Implements SerializationIface.

void erase ( size_t  pos)

Erase an element from a position

Parameters
[in]posPosition to erase
SerializationIfacePtr& get ( size_t  index)

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
const SerializationIfacePtr& get ( size_t  index) const

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element
DataCollection& operator<< ( const SerializationIfacePtr &  x)

Adds an element to the end of a collection

Parameters
[in]xElement to add
const SerializationIfacePtr& operator[] ( size_t  index) const

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Pointer to the element
SerializationIfacePtr& operator[] ( size_t  index)

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Pointer to the element
DataCollection& push_back ( const SerializationIfacePtr &  x)

Adds an element to the end of a collection

Parameters
[in]xElement to add
bool resize ( size_t  newCapacity)

Changes the size of a storage

Parameters
[in]newCapacitySize of a new storage.
services::Status serializeImpl ( interface1::InputDataArchive archive)
inlinevirtual

Interfaces for the implementation of serialization

Parameters
[in]archiveStorage for a serialized object or data structure

Implements SerializationIface.

size_t size ( ) const

Size of a collection

Returns
Size of the collection

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

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