GOBNILP
f164d83
|
Implements a data type representing a resizable array of integers. More...
#include "vector.h"
Functions | |
void | VectorAppend (Vector *vec, int item) |
Appends an item to the end of a vector. More... | |
void | VectorClear (Vector *vec) |
Clears all the values from a vector. More... | |
SCIP_Bool | VectorContains (Vector *vec, int item) |
Determine whether a vector contains a value. More... | |
Vector * | VectorCreate (int capacity) |
Creates a vector with a given capacity. More... | |
void | VectorDelete (Vector **vec) |
Deallocates the memory associated with a vector. More... | |
Implements a data type representing a resizable array of integers.
void VectorAppend | ( | Vector * | vec, |
int | item | ||
) |
Appends an item to the end of a vector.
vec | The vector to extend. |
item | The item to add. |
References Vector::items, and Vector::size.
Referenced by circuit(), and findStronglyConnectedComponents().
void VectorClear | ( | Vector * | vec | ) |
Clears all the values from a vector.
vec | The vector to clear. |
References Vector::size.
Referenced by CC_findCuts(), and unblock().
SCIP_Bool VectorContains | ( | Vector * | vec, |
int | item | ||
) |
Determine whether a vector contains a value.
vec | The vector to search. |
item | The item to search for. |
References Vector::items, and Vector::size.
Referenced by circuit(), and shouldIncludeInCuts().
Vector* VectorCreate | ( | int | capacity | ) |
Creates a vector with a given capacity.
capacity | The maximum capacity of the vector. |
References Vector::capacity, Vector::items, and Vector::size.
Referenced by circuit(), findStronglyConnectedComponents(), and PS_splitToComponents().
void VectorDelete | ( | Vector ** | vec | ) |
Deallocates the memory associated with a vector.
vec | The vector to free. |
Referenced by CC_finalise(), findStronglyConnectedComponents(), PS_splitToComponents(), VectorListClear(), and VectorListDelete().