|
Derive-C
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <string.h>#include <derive-c/container/queue/trait.h>#include <derive-c/core/debug/gdb_marker.h>#include <derive-c/core/debug/memory_tracker.h>#include <derive-c/core/debug/mutation_tracker.h>#include <derive-c/core/prelude.h>#include <derive-c/core/alloc/def.h>#include <derive-c/core/self/def.h>#include <derive-c/core/alloc/undef.h>#include <derive-c/core/self/undef.h>
Go to the source code of this file.
Classes | |
| struct | item_t |
| A queue comprised of an extendable circular buffer. More... | |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
Macros | |
| #define | ITEM item_t |
| #define | ITEM_DELETE item_delete |
| #define | ITEM_CLONE item_clone |
| #define | INVARIANT_CHECK(self) |
Typedefs | |
| typedef ITEM | item_t |
| typedef ITEM * | item |
Functions | |
| static void | item_delete (item_t *self) |
| static item_t | item_clone (item_t const *self) |
| static SELF | new (ALLOC *alloc) |
| static SELF | new_with_capacity_for (size_t capacity_for, ALLOC *alloc) |
| static bool | empty (SELF const *self) |
| static size_t | size (SELF const *self) |
| static void PRIV | set_inaccessible_memory_caps (SELF *self, memory_tracker_capability cap) |
| static void | reserve (SELF *self, size_t new_capacity_for) |
| static void | push_back (SELF *self, ITEM item) |
| static void | push_front (SELF *self, ITEM item) |
| static ITEM | pop_front (SELF *self) |
| static ITEM | pop_back (SELF *self) |
| static ITEM const * | try_read_from_front (SELF const *self, size_t index) |
| static ITEM const * | read_from_front (SELF const *self, size_t index) |
| static ITEM * | try_write_from_front (SELF *self, size_t index) |
| static ITEM * | write_from_front (SELF *self, size_t index) |
| static ITEM const * | try_read_from_back (SELF const *self, size_t index) |
| static ITEM const * | read_from_back (SELF const *self, size_t index) |
| static ITEM * | try_write_from_back (SELF *self, size_t index) |
| static ITEM * | write_from_back (SELF *self, size_t index) |
| static bool | empty_item (ITEM *const *item) |
| static bool | empty (ITER const *iter) |
| static ITEM * | next (ITER *iter) |
| static ITER | get_iter (SELF *self) |
| static void | delete (SELF *self) |
| static bool | empty_item (ITEM const *const *item) |
| static bool | empty (ITER_CONST const *iter) |
| static ITEM const * | next (ITER_CONST *iter) |
| static ITER_CONST | get_iter_const (SELF const *self) |
| static SELF | clone (SELF const *self) |
| TRAIT_QUEUE (SELF) | |
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 54 of file template.h.
| #define ITEM item_t |
Definition at line 25 of file template.h.
| #define ITEM_CLONE item_clone |
Definition at line 29 of file template.h.
| #define ITEM_DELETE item_delete |
Definition at line 27 of file template.h.
Definition at line 323 of file template.h.
| typedef ITEM item_t |
Definition at line 40 of file template.h.
Definition at line 414 of file template.h.

|
static |
Definition at line 359 of file template.h.

|
static |
Definition at line 333 of file template.h.

|
static |
Definition at line 388 of file template.h.

|
static |
Definition at line 98 of file template.h.

|
static |
|
static |
|
static |
Definition at line 350 of file template.h.

|
static |
Definition at line 405 of file template.h.

Definition at line 28 of file template.h.
|
static |
Definition at line 26 of file template.h.
Definition at line 62 of file template.h.

Definition at line 74 of file template.h.

|
static |
Definition at line 339 of file template.h.

|
static |
Definition at line 394 of file template.h.

Definition at line 235 of file template.h.


Definition at line 216 of file template.h.


Definition at line 184 of file template.h.


Definition at line 198 of file template.h.


Definition at line 297 of file template.h.


Definition at line 264 of file template.h.


|
static |
Definition at line 135 of file template.h.


|
static |
Definition at line 119 of file template.h.


|
static |
Definition at line 106 of file template.h.

| TRAIT_QUEUE | ( | SELF | ) |
Definition at line 285 of file template.h.


Definition at line 255 of file template.h.


Definition at line 303 of file template.h.


Definition at line 270 of file template.h.


Definition at line 315 of file template.h.


Definition at line 279 of file template.h.

