libsnobol4 1.0.2
High-performance SNOBOL4-style pattern matching library
Loading...
Searching...
No Matches
snobol_array Struct Reference

Sparse array state. More...

#include <array.h>

Collaboration diagram for snobol_array:

Public Attributes

array_entry_t * entries
size_t capacity
size_t size
size_t tombstones
uint32_t refcount
int32_t bounds_hint

Detailed Description

Sparse array state.

Definition at line 46 of file array.h.

Member Data Documentation

◆ bounds_hint

int32_t snobol_array::bounds_hint

Hint for expected key range (may be 0).

Definition at line 52 of file array.h.

◆ capacity

size_t snobol_array::capacity

Allocated capacity.

Definition at line 48 of file array.h.

◆ entries

array_entry_t* snobol_array::entries

Hash table entries.

Definition at line 47 of file array.h.

◆ refcount

uint32_t snobol_array::refcount

Reference count for safe sharing.

Definition at line 51 of file array.h.

◆ size

size_t snobol_array::size

Number of active entries.

Definition at line 49 of file array.h.

◆ tombstones

size_t snobol_array::tombstones

Number of deleted (tombstone) entries.

Definition at line 50 of file array.h.


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