Class that provides functionality of a key-value container for objects derived from the T with a key of the size_t type.
More...
template<typename T>
class daal::data_management::interface1::KeyValueCollection< T >
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] | idx | Index 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] | idx | Index 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] | idx | Index 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
-
- 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
-
- Returns
- Reference to SharedPtr of the SerializationIface type
Returns the number of stored objects
- Returns
- Number of stored objects
The documentation for this class was generated from the following file: