Class that provides functionality of Collection container for objects derived from SerializationIface interface and implements SerializationIface itself.
More...
◆ DataCollection() [1/3]
◆ DataCollection() [2/3]
◆ DataCollection() [3/3]
Constructor with a defined number of elements
- Parameters
-
◆ clear()
Clears a collection: removes an array, sets the size and capacity to 0
◆ deserializeImpl()
Interfaces for the implementation of deserialization
- Parameters
-
[in] | archive | Storage for a deserialized object or data structure |
Implements SerializationIface.
◆ erase()
Erase an element from a position
- Parameters
-
◆ get() [1/2]
SerializationIfacePtr& get |
( |
size_t |
index | ) |
|
Element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ get() [2/2]
const SerializationIfacePtr& get |
( |
size_t |
index | ) |
const |
Const element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Reference to the element
◆ operator<<()
Adds an element to the end of a collection
- Parameters
-
◆ operator[]() [1/2]
const SerializationIfacePtr& operator[] |
( |
size_t |
index | ) |
const |
Const element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Pointer to the element
◆ operator[]() [2/2]
SerializationIfacePtr& operator[] |
( |
size_t |
index | ) |
|
Element access
- Parameters
-
[in] | index | Index of an accessed element |
- Returns
- Pointer to the element
◆ push_back()
Adds an element to the end of a collection
- Parameters
-
◆ resize()
bool resize |
( |
size_t |
newCapacity | ) |
|
Changes the size of a storage
- Parameters
-
[in] | newCapacity | Size of a new storage. |
◆ serializeImpl()
Interfaces for the implementation of serialization
- Parameters
-
[in] | archive | Storage for a serialized object or data structure |
Implements SerializationIface.
◆ size()
Size of a collection
- Returns
- Size of the collection
The documentation for this class was generated from the following file: