The cdc_map_iter is a struct and functions that provide a map iterator.
More...
The cdc_map_iter is a struct and functions that provide a map iterator.
◆ cdc_map_iter_ctor()
Constructs a map iterator. Should be called for each new iterator.
- Parameters
-
Example:
◆ cdc_map_iter_dtor()
Destroys the iterator. It should be called after the iterator is no longer needed. Releases resources.
- Parameters
-
◆ cdc_map_iter_type()
Returns a type of iterator.
- Parameters
-
- Returns
- a type of iterator.
◆ cdc_map_iter_next()
Advances the iterator to the next element in the map.
- Parameters
-
◆ cdc_map_iter_prev()
Advances the iterator to the previous element in the map.
- Parameters
-
◆ cdc_map_iter_has_next()
static bool cdc_map_iter_has_next |
( |
struct cdc_map_iter * |
it | ) |
|
|
inlinestatic |
Returns true if there is at least one element ahead of the iterator, i.e. the iterator is not at the back of the container; otherwise returns false.
- Parameters
-
- Returns
- true if there is at least one element ahead of the iterator, i.e. the iterator is not at the back of the container; otherwise returns false.
◆ cdc_map_iter_has_prev()
static bool cdc_map_iter_has_prev |
( |
struct cdc_map_iter * |
it | ) |
|
|
inlinestatic |
Returns true if there is at least one element behind the iterator, i.e. the iterator is not at the front of the container; otherwise returns false.
- Parameters
-
- Returns
- true if there is at least one element behind the iterator, i.e. the iterator is not at the front of the container; otherwise returns false.
◆ cdc_map_iter_key()
Returns an item's key.
- Parameters
-
- Returns
- the item's key.
◆ cdc_map_iter_value()
Returns an item's value.
- Parameters
-
- Returns
- the item's value.
◆ cdc_map_iter_key_value()
Returns a pair, where first - key, second - value.
- Parameters
-
- Returns
- pair, where first - key, second - value.
◆ cdc_map_iter_is_eq()
Returns false if the iterator |it1| equal to the iterator |it2|, otherwise returns false.
- Parameters
-
[in] | it1 | - iterator |
[in] | it2 | - iterator |
- Returns
- false if the iterator |it1| equal to the iterator |it2|, otherwise returns false.