Derive-C
|
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include "utils.h"
#include <derive-c/core/helpers.h>
#include <derive-c/core/panic.h>
#include <derive-c/core/alloc/def.h>
#include <derive-c/core/self/def.h>
#include <derive-c/structures/vector/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 |
Functions | |
static void | item_delete (item_t *UNUSED(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 ITEM * | next (ITER *iter) |
static bool | empty (ITER const *iter) |
static ITER | get_iter (SELF *self) |
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) |
#define INTERNAL_NAME ITEM_VECTORS |
Definition at line 48 of file template.h.
#define ITEM item_t |
Definition at line 24 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 40 of file template.h.
Definition at line 77 of file template.h.
|
static |
Definition at line 309 of file template.h.
|
static |
Definition at line 251 of file template.h.
|
static |
Definition at line 293 of file template.h.
|
static |
Definition at line 220 of file template.h.
|
static |
|
static |
Definition at line 28 of file template.h.
|
static |
Definition at line 26 of file template.h.
Definition at line 63 of file template.h.
Definition at line 70 of file template.h.
|
static |
Definition at line 232 of file template.h.
|
static |
Definition at line 274 of file template.h.
Definition at line 155 of file template.h.
Definition at line 166 of file template.h.
Definition at line 133 of file template.h.
Definition at line 144 of file template.h.
Definition at line 202 of file template.h.
Definition at line 189 of file template.h.
Definition at line 183 of file template.h.
Definition at line 177 of file template.h.
|
static |
Definition at line 85 of file template.h.
|
static |
Definition at line 215 of file template.h.