Files | |
file | vset.h |
Class Vset: a dynamic set object. | |
Classes | |
struct | sVset |
Contains public data members for Vset class. More... | |
Typedefs | |
typedef struct sVset | Vset |
Declaration of the Vset class as the Vset structure. | |
Functions | |
int | Vset_num (Vset *thee) |
Return the number of things currently in the list. | |
char * | Vset_access (Vset *thee, int i) |
Access an object in an arbitrary place in the list. | |
char * | Vset_create (Vset *thee) |
Create an object on the end of the list. | |
char * | Vset_first (Vset *thee) |
Return the first object in the set. | |
char * | Vset_last (Vset *thee) |
Return the last object in the set. | |
char * | Vset_next (Vset *thee) |
Return the next object in the set. | |
char * | Vset_prev (Vset *thee) |
Return the prev object in the set. | |
char * | Vset_peekFirst (Vset *thee) |
Return the first object in the set. | |
char * | Vset_peekLast (Vset *thee) |
Return the last object in the set. | |
void | Vset_destroy (Vset *thee) |
Delete an object from the end of the list. | |
Vset * | Vset_ctor (Vmem *vmem, const char *tname, int tsize, int tmaxNum, int ioKey) |
Construct the set object. | |
void | Vset_dtor (Vset **thee) |
Destroy the set object. | |
char * | Vset_createLast (Vset *thee) |
Create an object on the end of the list. | |
void | Vset_destroyLast (Vset *thee) |
Free up the object currently on the end of the list. | |
void | Vset_initData (Vset *thee) |
Initialize the Vset data (thee). | |
void | Vset_reset (Vset *thee) |
Release all Ram controlled by this (thee) and re-initialize. | |
void | Vset_check (Vset *thee, int *tnum, int *tsize, int *tVecUse, int *tVecMal, int *tVecOhd) |
Get and return the RAM Control Block (thee) information. | |
void | Vset_memChk (Vset *thee) |
Print the exact current malloc usage. |
char* Vset_access | ( | Vset * | thee, | |
int | i | |||
) |
Access an object in an arbitrary place in the list.
thee | Pointer to the Vset object | |
i | index of the object |
void Vset_check | ( | Vset * | thee, | |
int * | tnum, | |||
int * | tsize, | |||
int * | tVecUse, | |||
int * | tVecMal, | |||
int * | tVecOhd | |||
) |
Get and return the RAM Control Block (thee) information.
thee | Pointer to the Vset object | |
tnum | the global "T" counter -- how many "T"s in list | |
tsize | size of the object in bytes | |
tVecUse | size of the total objects | |
tVecMal | size of the total RAM Control Block | |
tVecOhd | maximal size of RAM Control Block |
char* Vset_create | ( | Vset * | thee | ) |
Create an object on the end of the list.
thee | Pointer to the Vset object |
char* Vset_createLast | ( | Vset * | thee | ) |
Create an object on the end of the list.
thee | Pointer to the Vset object |
Construct the set object.
vmem | Memory management object | |
tname | name of object we are managing | |
tsize | size of the object in bytes | |
tmaxNum | number of objects to manage (user specified) | |
ioKey | index for i/o |
void Vset_destroy | ( | Vset * | thee | ) |
Delete an object from the end of the list.
thee | Pointer to the Vset object |
void Vset_destroyLast | ( | Vset * | thee | ) |
Free up the object currently on the end of the list.
thee | Pointer to the Vset object |
void Vset_dtor | ( | Vset ** | thee | ) |
Destroy the set object.
thee | Pointer to the Vset object |
char* Vset_first | ( | Vset * | thee | ) |
Return the first object in the set.
thee | Pointer to the Vset object |
void Vset_initData | ( | Vset * | thee | ) |
Initialize the Vset data (thee).
thee | Pointer to the Vset object |
char* Vset_last | ( | Vset * | thee | ) |
Return the last object in the set.
thee | Pointer to the Vset object |
void Vset_memChk | ( | Vset * | thee | ) |
Print the exact current malloc usage.
thee | Pointer to the Vset object |
char* Vset_next | ( | Vset * | thee | ) |
Return the next object in the set.
thee | Pointer to the Vset object |
int Vset_num | ( | Vset * | thee | ) |
Return the number of things currently in the list.
thee | Pointer to the Vset object |
char* Vset_peekFirst | ( | Vset * | thee | ) |
Return the first object in the set.
thee | Pointer to the Vset object |
char* Vset_peekLast | ( | Vset * | thee | ) |
Return the last object in the set.
thee | Pointer to the Vset object |
char* Vset_prev | ( | Vset * | thee | ) |
Return the prev object in the set.
thee | Pointer to the Vset object |
void Vset_reset | ( | Vset * | thee | ) |
Release all Ram controlled by this (thee) and re-initialize.
thee | Pointer to the Vset object |