Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Fields
vec_stats Struct Reference

Vector usage statistics. More...

#include <vector.h>

Data Fields

aint uiElementSize
 The number of bytes in one element. More...
 
aint uiOriginalElements
 The initial number of elements allocated to the vector. More...
 
aint uiOriginalBytes
 The initial number of bytes allocated to the vector. More...
 
aint uiReserved
 The current number of elements reserved. More...
 
aint uiUsed
 The current number elements used. More...
 
aint uiMaxUsed
 The maximum number of elements used during the vector's lifetime. More...
 
aint uiReservedBytes
 The current number of bytes reserved. More...
 
aint uiUsedBytes
 The current number of bytes in use. More...
 
aint uiMaxUsedBytes
 The maximum number of bytes used over the lifetime of the vector. More...
 
aint uiPushed
 The total number of elements pushed onto (added to) the vector. More...
 
aint uiPopped
 The total number of elements popped from (removed from) the vector. More...
 
aint uiGrownCount
 The number times the vector was automatically extended. More...
 
aint uiGrownElements
 The number new elements automatically added to the vector. More...
 
aint uiGrownBytes
 The number of bytes automatically added to the vector. More...
 

Detailed Description

Vector usage statistics.

If APG_VEC_STATS is defined, the vector object will collect usage statistics to be reported with this structure if requested with vVecStats(). If APG_VEC_STATS is not defined, the vector object will not collect usage statistics and vVecStats() will return this structure empty.

Definition at line 46 of file vector.h.

Field Documentation

◆ uiElementSize

aint vec_stats::uiElementSize

The number of bytes in one element.

Definition at line 47 of file vector.h.

◆ uiGrownBytes

aint vec_stats::uiGrownBytes

The number of bytes automatically added to the vector.

Definition at line 60 of file vector.h.

◆ uiGrownCount

aint vec_stats::uiGrownCount

The number times the vector was automatically extended.

Definition at line 58 of file vector.h.

◆ uiGrownElements

aint vec_stats::uiGrownElements

The number new elements automatically added to the vector.

Definition at line 59 of file vector.h.

◆ uiMaxUsed

aint vec_stats::uiMaxUsed

The maximum number of elements used during the vector's lifetime.

Definition at line 52 of file vector.h.

◆ uiMaxUsedBytes

aint vec_stats::uiMaxUsedBytes

The maximum number of bytes used over the lifetime of the vector.

Definition at line 55 of file vector.h.

◆ uiOriginalBytes

aint vec_stats::uiOriginalBytes

The initial number of bytes allocated to the vector.

Definition at line 49 of file vector.h.

◆ uiOriginalElements

aint vec_stats::uiOriginalElements

The initial number of elements allocated to the vector.

Definition at line 48 of file vector.h.

◆ uiPopped

aint vec_stats::uiPopped

The total number of elements popped from (removed from) the vector.

Definition at line 57 of file vector.h.

◆ uiPushed

aint vec_stats::uiPushed

The total number of elements pushed onto (added to) the vector.

Definition at line 56 of file vector.h.

◆ uiReserved

aint vec_stats::uiReserved

The current number of elements reserved.

Definition at line 50 of file vector.h.

◆ uiReservedBytes

aint vec_stats::uiReservedBytes

The current number of bytes reserved.

Definition at line 53 of file vector.h.

◆ uiUsed

aint vec_stats::uiUsed

The current number elements used.

Definition at line 51 of file vector.h.

◆ uiUsedBytes

aint vec_stats::uiUsedBytes

The current number of bytes in use.

Definition at line 54 of file vector.h.


The documentation for this struct was generated from the following file:
APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.