|
| void | cb_init (struct circular_buffer *self, struct circular_buffer_vtabv *vtabv, size_t capacity) |
| |
| void | cb_clone (struct circular_buffer *orig, struct circular_buffer *clone) |
| |
| void | cb_drop (struct circular_buffer *self) |
| |
| enum cvx_flags | cb_flag (struct circular_buffer *_self_) |
| |
| size_t | cb_count (struct circular_buffer *_self_) |
| |
| size_t | cb_capacity (struct circular_buffer *_self_) |
| |
| _Bool | cb_empty (struct circular_buffer *_self_) |
| |
| _Bool | cb_full (struct circular_buffer *_self_) |
| |
| _Bool | cb_is_linearized (struct circular_buffer *_self_) |
| |
| TVal | cb_front (struct circular_buffer *_self_) |
| |
| TVal | cb_back (struct circular_buffer *_self_) |
| |
| TVal | cb_get (struct circular_buffer *_self_, size_t _index_) |
| |
| void | cb_push_back (struct circular_buffer *_self_, TVal _item_) |
| | Push an element to the back. When full, overwrites the front element.
|
| |
| void | cb_push_front (struct circular_buffer *_self_, TVal _item_) |
| | Push an element to the front. When full, overwrites the back element.
|
| |
| TVal | cb_pop_back (struct circular_buffer *_self_) |
| | Remove and return the back element.
|
| |
| TVal | cb_pop_front (struct circular_buffer *_self_) |
| | Remove and return the front element.
|
| |
| void | cb_set_capacity (struct circular_buffer *_self_, size_t _new_cap_) |
| | Resize the buffer. If shrinking below count, drops the excess front elements.
|
| |
| void | cb_linearize (struct circular_buffer *_self_) |
| | Rearrange the internal buffer so elements are contiguous starting at index 0.
|
| |
| struct circular_buffer_iter | cb_iter_init_start (struct circular_buffer *_target_) |
| | ITERATOR.
|
| |
| struct circular_buffer_iter | cb_iter_init_end (struct circular_buffer *_target_) |
| |
| struct circular_buffer_iter * | cb_iter_start (struct circular_buffer *_target_) |
| |
| struct circular_buffer_iter * | cb_iter_end (struct circular_buffer *_target_) |
| |
| void | cb_iter_drop (struct circular_buffer_iter *_iter_) |
| |
| _Bool | cb_iter_at_start (struct circular_buffer_iter *_iter_) |
| |
| _Bool | cb_iter_at_end (struct circular_buffer_iter *_iter_) |
| |
| size_t | cb_iter_count (struct circular_buffer_iter *_iter_) |
| |
| void | cb_iter_to_start (struct circular_buffer_iter *_iter_) |
| |
| void | cb_iter_to_end (struct circular_buffer_iter *_iter_) |
| |
| void | cb_iter_next (struct circular_buffer_iter *_iter_) |
| |
| void | cb_iter_prev (struct circular_buffer_iter *_iter_) |
| |
| void | cb_iter_forward (struct circular_buffer_iter *_iter_, size_t _steps_) |
| |
| void | cb_iter_backward (struct circular_buffer_iter *_iter_, size_t _steps_) |
| |
| void | cb_iter_go_to (struct circular_buffer_iter *_iter_, size_t _index_) |
| |
| TVal | cb_iter_value (struct circular_buffer_iter *_iter_) |
| |
| size_t | cb_iter_index (struct circular_buffer_iter *_iter_) |
| |
| void | cb__proxy_clone (cvx_container *_orig_, cvx_container *_clone_) |
| | PROXIES.
|
| |
| void | cb__proxy_drop (cvx_container *_col_) |
| |
| enum cvx_flags | cb__proxy_flag (cvx_container *_col_) |
| |
| size_t | cb__proxy_count (cvx_container *_col_) |
| |
| size_t | cb__proxy_capacity (cvx_container *_col_) |
| |
| _Bool | cb__proxy_empty (cvx_container *_col_) |
| |
| _Bool | cb__proxy_full (cvx_container *_col_) |
| |
| _Bool | cb__proxy_is_linearized (cvx_container *_col_) |
| |
| TVal | cb__proxy_front (cvx_container *_col_) |
| |
| TVal | cb__proxy_back (cvx_container *_col_) |
| |
| TVal | cb__proxy_get (cvx_container *_col_, size_t _index_) |
| |
| void | cb__proxy_push_back (cvx_container *_col_, TVal _item_) |
| |
| void | cb__proxy_push_front (cvx_container *_col_, TVal _item_) |
| |
| TVal | cb__proxy_pop_back (cvx_container *_col_) |
| |
| TVal | cb__proxy_pop_front (cvx_container *_col_) |
| |
| void | cb__proxy_set_capacity (cvx_container *_col_, size_t _new_cap_) |
| |
| void | cb__proxy_linearize (cvx_container *_col_) |
| |
| cvx_container * | cb__proxy_iter_start (cvx_container *_col_) |
| |
| cvx_container * | cb__proxy_iter_end (cvx_container *_col_) |
| |
| void | cb__proxy_iter_drop (cvx_container *_col_) |
| |
| _Bool | cb__proxy_iter_at_start (cvx_container *_col_) |
| |
| _Bool | cb__proxy_iter_at_end (cvx_container *_col_) |
| |
| size_t | cb__proxy_iter_count (cvx_container *_col_) |
| |
| void | cb__proxy_iter_to_start (cvx_container *_col_) |
| |
| void | cb__proxy_iter_to_end (cvx_container *_col_) |
| |
| void | cb__proxy_iter_next (cvx_container *_col_) |
| |
| void | cb__proxy_iter_prev (cvx_container *_col_) |
| |
| void | cb__proxy_iter_forward (cvx_container *_col_, size_t _steps_) |
| |
| void | cb__proxy_iter_backward (cvx_container *_col_, size_t _steps_) |
| |
| void | cb__proxy_iter_go_to (cvx_container *_col_, size_t _index_) |
| |
| TVal | cb__proxy_iter_value (cvx_container *_col_) |
| |
| size_t | cb__proxy_iter_index (cvx_container *_col_) |
| |