|
stmm-games-doc
0.32.0
|
Smallish set of variants. More...
Public Member Functions | |
| VariantSet () noexcept | |
| Constructs empty variant set. More... | |
| VariantSet (const Variant &oValue) noexcept | |
| Constructs variant set with one value. More... | |
| VariantSet (const Variant &oFromValue, const Variant &oToValue) noexcept | |
| Constructs variant set with ordered value range. More... | |
| VariantSet (const std::vector< Variant > &aValues) noexcept | |
| Constructs variant set with array of unsorted values. More... | |
| VariantSet (const std::vector< Variant > &aValues, bool bIsSorted) noexcept | |
| Constructs variant set with array of values. More... | |
| VariantSet (std::vector< Variant > &&aValues) noexcept | |
| Constructs variant set with array of unsorted values. More... | |
| VariantSet (std::vector< Variant > &&aValues, bool bIsSorted) noexcept | |
| Constructs variant set with array of values. More... | |
| VariantSet (const VariantSet &oSource) noexcept | |
| VariantSet (VariantSet &&oSource) noexcept | |
| VariantSet & | operator= (const VariantSet &oSource) noexcept |
| VariantSet & | operator= (VariantSet &&oSource) noexcept |
| int32_t | size () const noexcept |
| The number of elements. More... | |
| bool | contains (const Variant &oValue) const noexcept |
| The value is part of the set. More... | |
| void | dump (int32_t nIndentSpaces, bool bHeader) const noexcept |
Smallish set of variants.
|
inlinenoexcept |
Constructs empty variant set.
|
explicitnoexcept |
Constructs variant set with one value.
| oValue | The value. Cannot be null. |
Constructs variant set with ordered value range.
The two values must have same type and not be null. Parameter oFromValue can be > oToValue.
| oFromValue | The start value. |
| oToValue | The end value. |
|
explicitnoexcept |
Constructs variant set with array of unsorted values.
If values are repeated they are ignored. All the values must have same type and not be null.
| aValues | The values. |
|
explicitnoexcept |
Constructs variant set with array of values.
If values are repeated they are ignored. All the values must have same type and not be null.
| aValues | The values. |
| bIsSorted | Whether the values are already sorted. |
|
explicitnoexcept |
Constructs variant set with array of unsorted values.
If values are repeated they are ignored. All the values must have same type and not be null.
| aValues | The values. |
|
explicitnoexcept |
Constructs variant set with array of values.
If values are repeated they are ignored. All the values must have same type and not be null.
| aValues | The values. |
| bIsSorted | Whether the values are already sorted. |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
The value is part of the set.
| oValue | The index. Must be >= 0 and < size(). |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
The number of elements.
1.8.13