cdcontainers
0.1.1
Library of data containers and collections for C programming language.
|
The cdc_list_iter is a struct and functions that provide a list iterator. More...
Functions | |
static void | cdc_list_iter_next (struct cdc_list_iter *it) |
Advances the iterator to the next element in the list. More... | |
static void | cdc_list_iter_prev (struct cdc_list_iter *it) |
Advances the iterator to the previous element in the list. More... | |
static bool | cdc_list_iter_has_next (struct cdc_list_iter *it) |
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. More... | |
static bool | cdc_list_iter_has_prev (struct cdc_list_iter *it) |
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. More... | |
static void * | cdc_list_iter_data (struct cdc_list_iter *it) |
Returns a current element. More... | |
static void | cdc_list_iter_from (struct cdc_list_riter *rit, struct cdc_list_iter *it) |
Сasts reverse iterator to iterator. More... | |
static bool | cdc_list_iter_is_eq (struct cdc_list_iter *it1, struct cdc_list_iter *it2) |
Returns false if the iterator |it1| equal to the iterator |it2|, otherwise returns false. More... | |
static void | cdc_list_riter_next (struct cdc_list_riter *it) |
Advances the reverse iterator to the next element in the list. More... | |
static void | cdc_list_riter_prev (struct cdc_list_riter *it) |
Advances the reverse iterator to the previous element in the list. More... | |
static bool | cdc_list_riter_has_next (struct cdc_list_riter *it) |
Returns true if there is at least one item ahead of the reverse iterator, i.e. the reverse iterator is not at the back of the container. otherwise returns false. More... | |
static bool | cdc_list_riter_has_prev (struct cdc_list_riter *it) |
Returns true if there is at least one item behind the reverse iterator, i.e. the reverse iterator is not at the front of the container; otherwise returns false. More... | |
static void * | cdc_list_riter_data (struct cdc_list_riter *it) |
Returns a current element. More... | |
static void | cdc_list_riter_from (struct cdc_list_iter *it, struct cdc_list_riter *rit) |
Сasts iterator to reverse iterator. More... | |
static bool | cdc_list_riter_is_eq (struct cdc_list_riter *rit1, struct cdc_list_riter *rit2) |
Returns false if the reverse iterator |rit1| equal to the reverse iterator |rit2|, otherwise returns false. More... | |
The cdc_list_iter is a struct and functions that provide a list iterator.
|
inlinestatic |
Advances the iterator to the next element in the list.
[in] | it | - iterator |
|
inlinestatic |
Advances the iterator to the previous element in the list.
[in] | it | - iterator |
|
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.
[in] | it | - iterator |
|
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.
[in] | it | - iterator |
|
inlinestatic |
Returns a current element.
[in] | it | - iterator |
|
inlinestatic |
Сasts reverse iterator to iterator.
[in] | rit | - reverse iterator |
[out] | it | - iterator |
|
inlinestatic |
Returns false if the iterator |it1| equal to the iterator |it2|, otherwise returns false.
[in] | it1 | - iterator |
[in] | it2 | - iterator |
|
inlinestatic |
Advances the reverse iterator to the next element in the list.
[in] | it | - reverse iterator |
|
inlinestatic |
Advances the reverse iterator to the previous element in the list.
[in] | it | - reverse iterator |
|
inlinestatic |
Returns true if there is at least one item ahead of the reverse iterator, i.e. the reverse iterator is not at the back of the container. otherwise returns false.
[in] | it | - reverse iterator |
|
inlinestatic |
Returns true if there is at least one item behind the reverse iterator, i.e. the reverse iterator is not at the front of the container; otherwise returns false.
[in] | it | - reverse iterator |
|
inlinestatic |
Returns a current element.
[in] | it | - reverse iterator |
|
inlinestatic |
Сasts iterator to reverse iterator.
[in] | it | - iterator |
[out] | rit | - reverse iterator |
|
inlinestatic |
Returns false if the reverse iterator |rit1| equal to the reverse iterator |rit2|, otherwise returns false.
[in] | rit1 | - reverse iterator |
[in] | rit2 | - reverse iterator |