|
Derive-C
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <string.h>#include "utils.h"#include <derive-c/container/queue/trait.h>#include <derive-c/core/debug/gdb_marker.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/container/vector/dynamic/template.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 | ITEM_VECTORS NS(NAME, item_vectors) |
| #define | INTERNAL_NAME ITEM_VECTORS |
| #define | INVARIANT_CHECK(self) |
Typedefs | |
| typedef ITEM * | item |
Functions | |
| static void | item_delete (item_t *a) |
| static item_t | item_clone (item_t const *a) |
| static SELF | new (ALLOC *alloc) |
| static SELF | new_with_capacity (size_t front_and_back_capacity, ALLOC *alloc) |
| static SELF | clone (SELF const *other) |
| static void | rebalance (SELF *self) |
| static ITEM const * | peek_front_read (SELF const *self) |
| static ITEM * | peek_front_write (SELF *self) |
| static ITEM const * | peek_back_read (SELF const *self) |
| static ITEM * | peek_back_write (SELF *self) |
| static void | push_front (SELF *self, ITEM item) |
| static void | push_back (SELF *self, ITEM item) |
| static ITEM | pop_front (SELF *self) |
| static ITEM | pop_back (SELF *self) |
| static size_t | size (SELF const *self) |
| static bool | empty (SELF const *self) |
| static bool | empty_item (ITEM *const *item) |
| static ITEM * | next (ITER *iter) |
| static bool | empty (ITER const *iter) |
| static ITER | get_iter (SELF *self) |
| static bool | empty_item (ITEM const *const *item) |
| static ITEM const * | next (ITER_CONST *iter) |
| static bool | empty (ITER_CONST const *iter) |
| static ITER_CONST | get_iter_const (SELF const *self) |
| static void | delete (SELF *self) |
| TRAIT_QUEUE (SELF) | |
| #define INTERNAL_NAME ITEM_VECTORS |
Definition at line 56 of file template.h.
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 72 of file template.h.
| #define ITEM item_t |
Definition at line 29 of file template.h.
| #define ITEM_CLONE item_clone |
Definition at line 34 of file template.h.
| #define ITEM_DELETE item_delete |
Definition at line 32 of file template.h.
Definition at line 48 of file template.h.
Definition at line 238 of file template.h.
Definition at line 96 of file template.h.

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

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

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

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

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

Definition at line 33 of file template.h.
|
static |
Definition at line 31 of file template.h.
Definition at line 76 of file template.h.

Definition at line 86 of file template.h.


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

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

Definition at line 163 of file template.h.


Definition at line 174 of file template.h.


Definition at line 141 of file template.h.


Definition at line 152 of file template.h.


Definition at line 213 of file template.h.

Definition at line 199 of file template.h.

Definition at line 192 of file template.h.

Definition at line 185 of file template.h.

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


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

| TRAIT_QUEUE | ( | SELF | ) |