#include <OnixS/CME/MDH/TinySet.h>
- Note
- Dereferencing returns a non-owning Messaging::StrRef. The referenced characters remain valid only while the underlying string remains unmodified and stored in its TinyStrSet.
Definition at line 268 of file TinySet.h.
◆ difference_type
Signed type used to represent distances between iterators.
Definition at line 284 of file TinySet.h.
◆ ItemIterator
Underlying iterator type.
Definition at line 275 of file TinySet.h.
◆ Items
| using Items = std::vector<std::string> |
String storage type traversed by the iterator.
Definition at line 272 of file TinySet.h.
◆ iterator_category
Iterator category used by standard algorithms.
Definition at line 278 of file TinySet.h.
◆ pointer
Pointer-like proxy type returned by operator->().
Definition at line 312 of file TinySet.h.
◆ reference
Type returned when the iterator is dereferenced.
Definition at line 315 of file TinySet.h.
◆ value_type
Value produced when the iterator is dereferenced.
Definition at line 281 of file TinySet.h.
◆ TinyStrSetIterator() [1/4]
Constructs a singular iterator.
- Note
- A singular iterator can only be assigned another iterator or destroyed.
◆ TinyStrSetIterator() [2/4]
| TinyStrSetIterator |
( |
const TinyStrSetIterator & | other | ) |
|
|
default |
Constructs an iterator referring to the same position as another iterator.
- Parameters
-
◆ TinyStrSetIterator() [3/4]
| TinyStrSetIterator |
( |
TinyStrSetIterator && | other | ) |
|
|
default |
Constructs an iterator by moving another iterator.
- Parameters
-
| other | Iterator whose state is moved. |
- Note
- After the operation,
other remains valid but has unspecified state.
◆ TinyStrSetIterator() [4/4]
Wraps an iterator over TinyStrSet string storage.
- Parameters
-
| iterator | Underlying iterator to wrap. |
Definition at line 349 of file TinySet.h.
◆ ~TinyStrSetIterator()
Destroys the iterator without affecting the underlying string.
◆ operator!=()
Checks whether two iterators refer to different positions.
- Parameters
-
| other | Iterator to compare. |
- Returns
- true if the iterators refer to different positions; otherwise false.
- Precondition
- Both iterators refer to the same TinyStrSet, or both are singular.
Definition at line 394 of file TinySet.h.
◆ operator*()
Returns a non-owning view of the current string.
- Returns
- View of the string at the current iterator position.
- Precondition
- The iterator is dereferenceable.
Definition at line 362 of file TinySet.h.
◆ operator++() [1/2]
Advances to the next string.
- Returns
- This iterator after advancement.
- Precondition
- The iterator is dereferenceable.
Definition at line 403 of file TinySet.h.
◆ operator++() [2/2]
Advances to the next string while retaining the previous position.
- Returns
- Iterator referring to the position before advancement.
- Precondition
- The iterator is dereferenceable.
Definition at line 414 of file TinySet.h.
◆ operator->()
Provides pointer-like access to the current string view.
- Returns
- Proxy through which members of Messaging::StrRef can be accessed.
- Precondition
- The iterator is dereferenceable.
Definition at line 372 of file TinySet.h.
◆ operator=() [1/2]
Makes this iterator refer to the same position as another iterator.
- Parameters
-
- Returns
- This iterator.
◆ operator=() [2/2]
Replaces this iterator's state by moving another iterator.
- Parameters
-
| other | Iterator whose state is moved. |
- Returns
- This iterator.
- Note
- After the operation,
other remains valid but has unspecified state.
◆ operator==()
Checks whether two iterators refer to the same position.
- Parameters
-
| other | Iterator to compare. |
- Returns
- true if both iterators refer to the same position; otherwise false.
- Precondition
- Both iterators refer to the same TinyStrSet, or both are singular.
Definition at line 383 of file TinySet.h.