Functions | |
| VimosTableArray * | newTableArray (int size) |
| Create an empty table array of appropriate size. | |
| void | deleteTableArray (VimosTableArray *array) |
| Delete an table array object. | |
| void | destroyTableArray (VimosTableArray *array) |
| Destroy an table array object. | |
| int | tblArrayIsEmpty (const VimosTableArray *array) |
| Check if an table array object is empty. | |
| int | tblArrayCapacity (const VimosTableArray *array) |
| Get the capacity of an table array. | |
| int | tblArraySize (const VimosTableArray *array) |
| Get the number of tables stored in an table array. | |
| const VimosTable * | tblArrayGet (const VimosTableArray *array, int index) |
| The function retrieves an table from an table array object. | |
| int | tblArraySet (VimosTableArray *array, int index, const VimosTable *table) |
| Set an element of an table array. | |
| VimosTable * | tblArrayRemove (VimosTableArray *array, int index) |
| Remove an table from an table array object. | |
| VimosTable ** | tblArrayGetData (const VimosTableArray *array) |
| Get reference to the array objects data. | |
| void deleteTableArray | ( | VimosTableArray * | array | ) |
Delete an table array object.
| array | Table array object to be deallocated. |
NULL nothing is done.| void destroyTableArray | ( | VimosTableArray * | array | ) |
Destroy an table array object.
| array | Table array object to be destroyed. |
NULL nothing is done.| VimosTableArray* newTableArray | ( | int | size | ) |
Create an empty table array of appropriate size.
NULL otherwise.| size | Size of the table array. |
NULL.
| int tblArrayCapacity | ( | const VimosTableArray * | array | ) |
Get the capacity of an table array.
| array | Table array object. |
| const VimosTable* tblArrayGet | ( | const VimosTableArray * | array, | |
| int | index | |||
| ) |
The function retrieves an table from an table array object.
NULL is returned.| array | Table array object. | |
| index | Array element offset. |
| VimosTable** tblArrayGetData | ( | const VimosTableArray * | array | ) |
Get reference to the array objects data.
| array | Table array object. |
| int tblArrayIsEmpty | ( | const VimosTableArray * | array | ) |
Check if an table array object is empty.
VM_TRUE if the array is empty, otherwise VM_FALSE is returned.| array | Table array object to be tested. |
| VimosTable* tblArrayRemove | ( | VimosTableArray * | array, | |
| int | index | |||
| ) |
Remove an table from an table array object.
| array | Table array object. | |
| index | Array element offset. |
NULL. If no table was stored in the array element the function succeeds and the returned reference is NULL.
| int tblArraySet | ( | VimosTableArray * | array, | |
| int | index, | |||
| const VimosTable * | table | |||
| ) |
Set an element of an table array.
EXIT_SUCCESS if no error occurred, or EXIT_FAILURE otherwise.| array | Table array object. | |
| index | Array element offset. | |
| table | Table object. |
NULL as table table.| int tblArraySize | ( | const VimosTableArray * | array | ) |
Get the number of tables stored in an table array.
| array | Table array object. |
1.4.7