GOBNILP
f164d83
|
Implements a data type representing a resizable array of resizable arrays of integers. More...
#include "vectorlist.h"
Functions | |
void | VectorListAppend (VectorList *vl, Vector *item) |
Appends an item to the end of a vectorlist. More... | |
void | VectorListClear (VectorList *vl) |
Clears all the values from a vectorlist. More... | |
VectorList * | VectorListCreate (int capacity) |
Creates a vectorlist with a given capacity. More... | |
void | VectorListDelete (VectorList **vl) |
Deallocates the memory associated with a vectorlist. More... | |
Implements a data type representing a resizable array of resizable arrays of integers.
void VectorListAppend | ( | VectorList * | vl, |
Vector * | item | ||
) |
Appends an item to the end of a vectorlist.
vl | The vectorlist to extend. |
item | The item to add. |
References VectorList::items, and VectorList::size.
Referenced by circuit(), and findStronglyConnectedComponents().
void VectorListClear | ( | VectorList * | vl | ) |
Clears all the values from a vectorlist.
vl | The vectorlist to clear. |
References VectorList::items, VectorList::size, and VectorDelete().
Referenced by CC_findCuts().
VectorList* VectorListCreate | ( | int | capacity | ) |
Creates a vectorlist with a given capacity.
capacity | The maximum capacity of the vectorlist. |
References VectorList::capacity, VectorList::items, and VectorList::size.
Referenced by PS_splitToComponents().
void VectorListDelete | ( | VectorList ** | vl | ) |
Deallocates the memory associated with a vectorlist.
vl | The vectorlist to free. |
References VectorDelete().
Referenced by CC_finalise(), and PS_splitToComponents().