GOBNILP  f164d83
Functions
vectorlist.c File Reference

Implements a data type representing a resizable array of resizable arrays of integers. More...

#include "vectorlist.h"
Include dependency graph for vectorlist.c:

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...
 
VectorListVectorListCreate (int capacity)
 Creates a vectorlist with a given capacity. More...
 
void VectorListDelete (VectorList **vl)
 Deallocates the memory associated with a vectorlist. More...
 

Detailed Description

Implements a data type representing a resizable array of resizable arrays of integers.

Function Documentation

◆ VectorListAppend()

void VectorListAppend ( VectorList vl,
Vector item 
)

Appends an item to the end of a vectorlist.

Parameters
vlThe vectorlist to extend.
itemThe item to add.

References VectorList::items, and VectorList::size.

Referenced by circuit(), and findStronglyConnectedComponents().

◆ VectorListClear()

void VectorListClear ( VectorList vl)

Clears all the values from a vectorlist.

Parameters
vlThe vectorlist to clear.

References VectorList::items, VectorList::size, and VectorDelete().

Referenced by CC_findCuts().

Here is the call graph for this function:

◆ VectorListCreate()

VectorList* VectorListCreate ( int  capacity)

Creates a vectorlist with a given capacity.

Parameters
capacityThe maximum capacity of the vectorlist.
Returns
An empty vectorlist.

References VectorList::capacity, VectorList::items, and VectorList::size.

Referenced by PS_splitToComponents().

◆ VectorListDelete()

void VectorListDelete ( VectorList **  vl)

Deallocates the memory associated with a vectorlist.

Parameters
vlThe vectorlist to free.

References VectorDelete().

Referenced by CC_finalise(), and PS_splitToComponents().

Here is the call graph for this function: