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

List of all members
KeyValueCollection< T > Class Template Reference

Class that provides functionality of a key-value container for objects derived from the T with a key of the size_t type. More...

Class Declaration

template<typename T>
class daal::data_management::interface1::KeyValueCollection< T >

Constructor & Destructor Documentation

KeyValueCollection ( )
inline

Default constructor

KeyValueCollection ( const KeyValueCollection< T > &  other)
inline

Copy constructor

Member Function Documentation

void clear ( )
inline

Removes all elements from a container

size_t getKeyByIndex ( int  idx) const
inline

Returns a reference to SharedPtr for a stored key with a given index

Parameters
[in]idxIndex of the requested key
Returns
Reference to SharedPtr of the size_t type
services::SharedPtr<T>& getValueByIndex ( int  idx)
inline

Returns a reference to SharedPtr for a stored object with a given index

Parameters
[in]idxIndex of the requested object
Returns
Reference to SharedPtr of the SerializationIface type
const services::SharedPtr<T> getValueByIndex ( int  idx) const
inline

Returns a const SharedPtr for a stored object with a given index

Parameters
[in]idxIndex of the requested object
Returns
Reference to SharedPtr of the SerializationIface type
const services::SharedPtr<T>& operator[] ( size_t  k) const
inline

Returns a reference to SharedPtr for a stored object with a given key if an object with such key was registered

Parameters
[in]kKey value
Returns
Reference to SharedPtr of the SerializationIface type
services::SharedPtr<T>& operator[] ( size_t  k)

Creates an empty SharedPtr and stores it under a requested key and returns a reference for this value

Parameters
[in]kKey value
Returns
Reference to SharedPtr of the SerializationIface type
size_t size ( ) const
inline

Returns the number of stored objects

Returns
Number of stored objects

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

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