libfossil
fsl_id_bag Struct Reference

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

#include "fossil-util.h"

Data Fields

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

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 3986 of file fossil-util.h.

Field Documentation

fsl_size_t fsl_id_bag::capacity

The number of elements allocated for this->list.

Definition at line 3996 of file fossil-util.h.

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 3992 of file fossil-util.h.

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 4006 of file fossil-util.h.

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 4001 of file fossil-util.h.


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