|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/alloc/def.h>#include <derive-c/core/self/def.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/alloc/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| 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... | |
| struct | ITER |
| struct | ITER_CONST |
Macros | |
| #define | ITEM item_t |
| #define | ITEM_DELETE item_delete |
| #define | ITEM_CLONE item_clone |
| #define | ITEM_DEBUG item_debug |
| #define | INVARIANT_CHECK(self) |
| #define | ITER NS(SELF, iter) |
| #define | ITER_CONST NS(SELF, iter_const) |
Typedefs | |
| typedef size_t | index_t |
| typedef ITEM * | item |
Functions | |
| static void | ITEM_DELETE (item_t *) |
| static item_t | ITEM_CLONE (item_t const *self) |
| static void | ITEM_DEBUG (ITEM const *, dc_debug_fmt, FILE *) |
| static DC_PUBLIC SELF | new (ref alloc_ref) |
| static DC_PUBLIC SELF | new_with_capacity (size_t capacity, ref alloc_ref) |
| static DC_PUBLIC SELF | new_with_defaults (size_t size, ITEM default_item, ref alloc_ref) |
| static DC_PUBLIC void | reserve (SELF *self, size_t new_capacity) |
| static DC_PUBLIC SELF | clone (SELF const *self) |
| static DC_PUBLIC ITEM const * | try_read (SELF const *self, size_t index) |
| static DC_PUBLIC ITEM const * | read (SELF const *self, size_t index) |
| static DC_PUBLIC ITEM * | try_write (SELF *self, size_t index) |
| static DC_PUBLIC ITEM * | write (SELF *self, size_t index) |
| static DC_PUBLIC ITEM * | try_insert_at (SELF *self, size_t at, ITEM const *items, size_t count) |
| static DC_PUBLIC void | remove_at (SELF *self, size_t at, size_t count) |
| static DC_PUBLIC ITEM * | try_push (SELF *self, ITEM item) |
| static DC_PUBLIC ITEM * | push (SELF *self, ITEM item) |
| static DC_PUBLIC bool | try_pop (SELF *self, ITEM *destination) |
| static DC_PUBLIC ITEM * | data (SELF *self) |
| static DC_PUBLIC ITEM | pop (SELF *self) |
| static DC_PUBLIC ITEM | pop_front (SELF *self) |
| static DC_PUBLIC size_t | size (SELF const *self) |
| static DC_PUBLIC void | delete (SELF *self) |
| static DC_PUBLIC void | transfer_reverse (SELF *source, SELF *target, size_t to_move) |
| static DC_PUBLIC DC_INLINE bool | empty_item (ITEM *const *item) |
| static DC_PUBLIC DC_INLINE ITEM * | next (ITER *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE size_t | position (ITER const *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE bool | empty (ITER const *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE ITER | get_iter (SELF *self) |
| static DC_PUBLIC DC_INLINE bool | empty_item (ITEM const *const *item) |
| static DC_PUBLIC DC_INLINE ITEM const * | next (ITER_CONST *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE size_t | position (ITER_CONST const *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE bool | empty (ITER_CONST const *DC_RESTRICT iter) |
| static DC_PUBLIC DC_INLINE ITER_CONST | get_iter_const (SELF const *self) |
| static DC_PUBLIC void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| DC_TRAIT_VECTOR (SELF) | |
Variables | |
| DC_STATIC_CONSTANT size_t | max_size = SIZE_MAX |
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 51 of file template.h.
Definition at line 18 of file template.h.
| #define ITEM_CLONE item_clone |
Definition at line 21 of file template.h.
| #define ITEM_DEBUG item_debug |
Definition at line 23 of file template.h.
| #define ITEM_DELETE item_delete |
Definition at line 19 of file template.h.
Definition at line 370 of file template.h.
Definition at line 417 of file template.h.
| typedef size_t index_t |
Definition at line 39 of file template.h.
Definition at line 371 of file template.h.
Definition at line 141 of file template.h.
Definition at line 284 of file template.h.
| DC_TRAIT_VECTOR | ( | SELF | ) |
|
static |
Definition at line 464 of file template.h.
Definition at line 313 of file template.h.
|
static |
Definition at line 400 of file template.h.
|
static |
Definition at line 448 of file template.h.
Definition at line 373 of file template.h.
Definition at line 420 of file template.h.
Definition at line 406 of file template.h.
|
static |
Definition at line 454 of file template.h.
Definition at line 22 of file template.h.
|
static |
Definition at line 24 of file template.h.
|
static |
Definition at line 20 of file template.h.
Definition at line 58 of file template.h.
Definition at line 70 of file template.h.
Definition at line 88 of file template.h.
|
static |
Definition at line 382 of file template.h.
|
static |
Definition at line 431 of file template.h.
Definition at line 289 of file template.h.
Definition at line 296 of file template.h.
|
static |
Definition at line 394 of file template.h.
|
static |
Definition at line 442 of file template.h.
Definition at line 263 of file template.h.
Definition at line 168 of file template.h.
Definition at line 211 of file template.h.
Definition at line 108 of file template.h.
Definition at line 308 of file template.h.
Moves to_move items from the beginning of source, to the end of target, shuffling elements in source forward appropriately.
Becomes:
Definition at line 348 of file template.h.
Definition at line 190 of file template.h.
Definition at line 270 of file template.h.
Definition at line 232 of file template.h.
Definition at line 160 of file template.h.
Definition at line 175 of file template.h.
Definition at line 183 of file template.h.
| DC_STATIC_CONSTANT size_t max_size = SIZE_MAX |
Definition at line 56 of file template.h.