C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

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

◆ DataCollection() [1/3]

Default constructor

◆ DataCollection() [2/3]

DataCollection ( const DataCollection other)

Copy constructor

◆ DataCollection() [3/3]

DataCollection ( size_t  n)

Constructor with a defined number of elements

Parameters
[in]nNumber of elements

Member Function Documentation

◆ clear()

void clear ( )

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

◆ deserializeImpl()

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.

◆ erase()

void erase ( size_t  pos)

Erase an element from a position

Parameters
[in]posPosition to erase

◆ get() [1/2]

SerializationIfacePtr& get ( size_t  index)

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element

◆ get() [2/2]

const SerializationIfacePtr& get ( size_t  index) const

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Reference to the element

◆ operator<<()

DataCollection& operator<< ( const SerializationIfacePtr &  x)

Adds an element to the end of a collection

Parameters
[in]xElement to add

◆ operator[]() [1/2]

const SerializationIfacePtr& operator[] ( size_t  index) const

Const element access

Parameters
[in]indexIndex of an accessed element
Returns
Pointer to the element

◆ operator[]() [2/2]

SerializationIfacePtr& operator[] ( size_t  index)

Element access

Parameters
[in]indexIndex of an accessed element
Returns
Pointer to the element

◆ push_back()

DataCollection& push_back ( const SerializationIfacePtr &  x)

Adds an element to the end of a collection

Parameters
[in]xElement to add

◆ resize()

bool resize ( size_t  newCapacity)

Changes the size of a storage

Parameters
[in]newCapacitySize of a new storage.

◆ serializeImpl()

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()

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.