libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
GblArrayList Struct Reference

#include <gimbal_array_list.h>

Inheritance diagram for GblArrayList:
gbl::Vector< void * > gbl::Vector< T > gbl::FlexibleVector< ExtraStackSize, T >

Data Fields

struct { 
 
   GblContext *   pCtx 
 
   uint8_t *   pData 
 
   size_t   size 
 
   size_t   capacity 
 
   uint16_t   elementSize 
 
   uint16_t   zeroTerminated: 1 
 
   uint16_t   stackCapacity: 15 
 
private_ 
 

Detailed Description

Contiguous, array-based abstract list container with C++-style STL API.

GblArrayList is a C++ STL-style std::vector replacement as a general-purpose dynamic array with a few extra features:

  • Custom allocator support
  • Optional additional stack-based storage before overflowing to the heap
  • Optional zero termination
See also
GblRingBuffer, GblArrayDeque

Definition at line 29 of file gimbal_array_list.h.

Field Documentation

◆ pCtx

GblContext* GblArrayList::pCtx

Definition at line 31 of file gimbal_array_list.h.

◆ pData

uint8_t* GblArrayList::pData

Definition at line 32 of file gimbal_array_list.h.

◆ size

size_t GblArrayList::size

Definition at line 33 of file gimbal_array_list.h.

◆ capacity

size_t GblArrayList::capacity

Definition at line 34 of file gimbal_array_list.h.

◆ elementSize

uint16_t GblArrayList::elementSize

Definition at line 35 of file gimbal_array_list.h.

◆ zeroTerminated

uint16_t GblArrayList::zeroTerminated

Definition at line 36 of file gimbal_array_list.h.

◆ stackCapacity

uint16_t GblArrayList::stackCapacity

Definition at line 37 of file gimbal_array_list.h.


The documentation for this struct was generated from the following file: