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 >
◆ KeyValueCollection() [1/2]
◆ KeyValueCollection() [2/2]
◆ clear()
Removes all elements from a container
◆ getKeyByIndex()
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
◆ getValueByIndex() [1/2]
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
◆ getValueByIndex() [2/2]
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
◆ operator[]() [1/2]
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
◆ operator[]() [2/2]
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
◆ size()
Returns the number of stored objects
- Returns
- Number of stored objects
The documentation for this class was generated from the following file: