SetOrMapImplEntry
SetOrMapImplEntry is a final class template
defined in Fw/DataStructures.
It represents an iterator for a set or a map implementation.
1. Template Parameters
SetOrMapImplEntry has the following template parameters.
| Kind | Name | Purpose |
|---|---|---|
typename |
KE |
The type of a key in a map or the element of a set |
typename |
VN |
The type of a value in a map or Nil in a set |
SetOrMapImplEntry statically asserts the following:
KEis default constructible.KEis assignable toKE&.VNis default constructible.VNis assignable toVN&.
2. Base Class
SetOrMapImplEntry<KE, VN> is publicly derived from the following
templates:
classDiagram
MapEntryBase <|-- SetOrMapImplEntry
3. Private Member Variables
SetOrMapImplEntry has the following private member variables.
| Name | Type | Purpose | Default Value |
|---|---|---|---|
m_keyOrElement |
KE |
The map key or set element | C++ default initialization |
m_valueOrNil |
VN |
The value or Nil |
C++ default initialization |
4. Public Constructors and Destructors
4.1. Zero-Argument Constructor
Use default initialization of members.
4.2. Constructor Providing Members
-
Set
m_keyOrElement = keyOrElement. -
Set
m_valueOrNil = valueOrNil.
4.3. Copy Constructor
Set *this = iterator.
4.4. Destructor
Defined as = default.
5. Public Member Functions
5.1. operator=
-
If
this != &iterator-
Set
m_keyOrElement = iterator.keyOrElement. -
Set
m_valueOrNil = iterator.valueOrNil.
-
5.3. getElement
Return a reference to m_keyOrElement.
5.2. getKey
Return a reference to m_keyOrElement.
5.3. getValue
Return a reference to m_valueOrNil.
5.6. setKeyOrElement
Set m_keyOrElement = keyOrElement.
5.7. setValueOrNil
Set m_valueOrNil = valueOrNil.