Derive-C
Loading...
Searching...
No Matches
SELF Struct Reference

An allocator that prints to stdout when it allocates or frees memory. More...

#include <template.h>

Collaboration diagram for SELF:

Public Attributes

char const * name
ALLOCbase
size_t used
buffer * buffer
gdb_marker derive_c_staticbumpalloc
ALLOCalloc
ENTRIES_VECTOR entries
SLOTslots
size_t capacity
INDEX_TYPE free_list
size_t exclusive_end
size_t count
gdb_marker derive_c_arena_basic
mutation_tracker iterator_invalidation_tracker
size_t items
KEY_ENTRYkeys
VALUEvalues
gdb_marker derive_c_hashmap
ITEMdata
size_t head
size_t tail
bool empty
gdb_marker derive_c_circular
ITEM_VECTORS front
ITEM_VECTORS back
gdb_marker derive_c_deque
size_t size
gdb_marker derive_c_vector_marker
INDEX_TYPE size
ITEM data [INPLACE_CAPACITY]
gdb_marker derive_c_staticvec
union { 
   ITEM   item 
}; 
bool present
gdb_marker derive_c_option
FILE * stream
char * buf
size_t size_without_null

Detailed Description

An allocator that prints to stdout when it allocates or frees memory.

A simple, portable string builder that can be templated by allocator.

  • Takes a specific instance, so we can define different printers for different instances of data structures, only see the allocations we want to.
  • Uses GNU additional feature fopencookie, so not available without glibc.

Definition at line 16 of file template.h.

Member Data Documentation

◆ [union]

union { ... } SELF

◆ alloc

ALLOC * SELF::alloc

Definition at line 66 of file template.h.

◆ back

ITEM_VECTORS SELF::back

Definition at line 66 of file template.h.

◆ base

ALLOC* SELF::base

Definition at line 18 of file template.h.

◆ buf

char* SELF::buf

Definition at line 22 of file template.h.

◆ buffer

buffer* SELF::buffer

Definition at line 40 of file template.h.

◆ capacity

size_t SELF::capacity

Definition at line 124 of file template.h.

◆ count

size_t SELF::count

Definition at line 135 of file template.h.

◆ data [1/2]

ITEM * SELF::data

Definition at line 44 of file template.h.

◆ data [2/2]

ITEM SELF::data[INPLACE_CAPACITY]

Definition at line 59 of file template.h.

◆ derive_c_arena_basic

gdb_marker SELF::derive_c_arena_basic

Definition at line 138 of file template.h.

◆ derive_c_circular

gdb_marker SELF::derive_c_circular

Definition at line 50 of file template.h.

◆ derive_c_deque

gdb_marker SELF::derive_c_deque

Definition at line 68 of file template.h.

◆ derive_c_hashmap

gdb_marker SELF::derive_c_hashmap

Definition at line 87 of file template.h.

◆ derive_c_option

gdb_marker SELF::derive_c_option

Definition at line 41 of file template.h.

◆ derive_c_staticbumpalloc

gdb_marker SELF::derive_c_staticbumpalloc

Definition at line 41 of file template.h.

◆ derive_c_staticvec

gdb_marker SELF::derive_c_staticvec

Definition at line 60 of file template.h.

◆ derive_c_vector_marker

gdb_marker SELF::derive_c_vector_marker

Definition at line 48 of file template.h.

◆ empty

bool SELF::empty

Definition at line 48 of file template.h.

◆ entries

ENTRIES_VECTOR SELF::entries

Definition at line 67 of file template.h.

◆ exclusive_end

size_t SELF::exclusive_end

Definition at line 131 of file template.h.

◆ free_list

INDEX_TYPE SELF::free_list

Definition at line 125 of file template.h.

◆ front

ITEM_VECTORS SELF::front

Definition at line 65 of file template.h.

◆ head

size_t SELF::head

Definition at line 46 of file template.h.

◆ item

ITEM SELF::item

Definition at line 38 of file template.h.

◆ items

size_t SELF::items

Definition at line 83 of file template.h.

◆ iterator_invalidation_tracker

mutation_tracker SELF::iterator_invalidation_tracker

Definition at line 139 of file template.h.

◆ keys

KEY_ENTRY* SELF::keys

Definition at line 84 of file template.h.

◆ name

char const* SELF::name

Definition at line 17 of file template.h.

◆ present

bool SELF::present

Definition at line 40 of file template.h.

◆ size [1/2]

size_t SELF::size

Definition at line 44 of file template.h.

◆ size [2/2]

INDEX_TYPE SELF::size

Definition at line 58 of file template.h.

◆ size_without_null

size_t SELF::size_without_null

Definition at line 23 of file template.h.

◆ slots

SLOT* SELF::slots

Definition at line 123 of file template.h.

◆ stream

FILE* SELF::stream

Definition at line 21 of file template.h.

◆ tail

size_t SELF::tail

Definition at line 47 of file template.h.

◆ used

size_t SELF::used

Definition at line 39 of file template.h.

◆ values

VALUE* SELF::values

Definition at line 85 of file template.h.


The documentation for this struct was generated from the following files:
  • /home/runner/work/derive-C/derive-C/src/derive-c/alloc/debug/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/alloc/staticbump/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/alloc/test/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/arena/basic/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/map/decomposed/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/queue/circular/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/queue/deque/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/vector/dynamic/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/container/vector/static/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/utils/option/template.h
  • /home/runner/work/derive-C/derive-C/src/derive-c/utils/string_builder/template.h