libfossil
fsl_id_bag Struct Reference

A container type for lists of db record IDs. More...

#include "util.h"

Collaboration diagram for fsl_id_bag:

Data Fields

fsl_size_t capacity
 The number of elements allocated for this->list.
fsl_size_t entryCount
 Number of entries of this->list which are in use (have a positive value).
fsl_id_t * list
 Array of IDs this->capacity elements long.
fsl_size_t used
 The number of elements in this->list which have a zero or positive value.

Detailed Description

A container type for lists of db record IDs.

This is used in several places as a cache for record IDs, to keep track of ones we know about, ones we know that we don't know about, and to avoid duplicate processing in some contexts.

Definition at line 5694 of file util.h.

Field Documentation

◆ capacity

fsl_size_t fsl_id_bag::capacity

The number of elements allocated for this->list.

Definition at line 5704 of file util.h.

◆ entryCount

fsl_size_t fsl_id_bag::entryCount

Number of entries of this->list which are in use (have a positive value).

They need not be contiguous! Must be <= capacity.

Definition at line 5700 of file util.h.

◆ list

fsl_id_t* fsl_id_bag::list

Array of IDs this->capacity elements long.

"Used" elements have a positive value. Unused ones are set to 0.

Definition at line 5714 of file util.h.

◆ used

fsl_size_t fsl_id_bag::used

The number of elements in this->list which have a zero or positive value.

Must be <= capacity.

Definition at line 5709 of file util.h.


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