|
#define | zIndexIncSize(i) ( zArraySize(i)++ ) |
| increment size of an index vector. More...
|
|
#define | zIndexDecSize(i) ( zArraySize(i) -= ( zArraySize(i) > 0 ? 1 : 0 ) ) |
| decrement size of an index vector. More...
|
|
#define | zIndexPosIsValid(i, n) zArrayPosIsValid( i, n ) |
| check if the specified position is valid for an index vector. More...
|
|
#define | zIndexElemNC(i, n) zArrayBuf(i)[n] |
|
#define | zIndexElem(i, n) ( zIndexPosIsValid(i,n) ? zIndexElemNC(i,n) : -1 ) |
|
#define | zIndexSetElemNC(i, n, e) ( zIndexElemNC(i,n) = (e) ) |
|
#define | zIndexSetElem(i, n, e) ( zIndexPosIsValid(i,n) ? zIndexSetElemNC(i,n,e) : -1 ) |
|
#define | zIndexHead(idx) ( *zArrayHead(idx) ) |
|
#define | zIndexNeck(idx) ( *zArrayNeck(idx) ) |
|
#define | zIndexTail(idx) ( *zArrayTail(idx) ) |
|
#define | zIndexScan() zIndexFScan( stdin ) |
|
#define | zIndexPrint(i) zIndexFPrint( stdout, i ) |
|
#define | zIndexDataPrint(i) zIndexDataFPrint( stdout, i ) |
|
|
zIndex | zIndexAlloc (int size) |
| allocate an array of integer values. More...
|
|
zIndex | zIndexCreate (int size) |
| create an array of integer values. More...
|
|
zIndex | zIndexCreateList (int num,...) |
| create an array of integer according to a specified list of arguments. More...
|
|
zIndex | zIndexSetList (zIndex idx,...) |
| set elements of an integer vector from argument list. More...
|
|
void | zIndexFree (zIndex idx) |
| free an array of integer values. More...
|
|
zIndex | zIndexZero (zIndex idx) |
| zero an array of integer values. More...
|
|
zIndex | zIndexOrder (zIndex idx, int s) |
| order an array of integer values. More...
|
|
bool | zIndexIsEqual (zIndex idx1, zIndex idx2) |
| check if two arrays of integer values are equal. More...
|
|
int | zIndexSwap (zIndex idx, int p1, int p2) |
| swap two elements of an array of integer values. More...
|
|
int | zIndexMove (zIndex idx, int from, int to) |
| move an element of an array of integer values. More...
|
|
zIndex | zIndexFScan (FILE *fp) |
| scan an array of integer values from a file. More...
|
|
void | zIndexFPrint (FILE *fp, zIndex idx) |
| print an array of integer values to a file. More...
|
|
void | zIndexDataFPrint (FILE *fp, zIndex idx) |
| print an array of integer values out to a file. More...
|
|
zIndex | zIndexCreateFromList (zIntList *list) |
| create an integer vector from a list of integers. More...
|
|