API function definitions for manipulating tuples. More...
Functions | |
| MVLibExport MVCode_t | MV_Tuple_Init (size_t size, MVTuple_t *pTuple) |
| Initializes a new tuple of a given size. More... | |
| MVLibExport void | MV_Tuple_Clear (MVTuple_t *pTuple) |
| Destroys the tuple. More... | |
| MVLibExport size_t | MV_Tuple_GetSize (MVTuple_t tuple) |
| Gets the size (i.e. number of elements) of a tuple. More... | |
| MVLibExport MVCode_t | MV_Tuple_Set (MVTuple_t tuple, size_t index, MVValue_t value) |
| Copies a value (scalar or array) into the element of a tuple. More... | |
| MVLibExport MVCode_t | MV_Tuple_Get (MVTuple_t tuple, size_t index, MVValue_t *pValue) |
| Initializes a new value with a copy of a tuple element. More... | |
API function definitions for manipulating tuples.
| MVLibExport void MV_Tuple_Clear | ( | MVTuple_t * | pTuple | ) |
Destroys the tuple.
Every initialization of a tuple by MV_Tuple_Init() must be balanced by a call to MV_Tuple_Clear().
| [in,out] | pTuple | points to the handle of the tuple that is destroyed. |
Initializes a new value with a copy of a tuple element.
| [in] | tuple | is the handle of the tuple whose element is copied. |
| [in] | index | is the index of the element that is copied. |
| [out] | pValue | points to the handle of the value that is initialized. |
value was successfully initialized with the tuple element at the specified @index. tuple or pValue are NULL. index is out of range. | MVLibExport size_t MV_Tuple_GetSize | ( | MVTuple_t | tuple | ) |
Gets the size (i.e. number of elements) of a tuple.
| [in] | tuple | is the handle of the tuple that is queried. |
Initializes a new tuple of a given size.
| [in] | size | is the number of individual values which are held by the new tuple. |
| [out] | pTuple | points to the handle of the tuple that is initialized. |
pTuple is NULL. Provide a pointer to a valid variable of type MVTuple_t which is to be initialized. size is zero. Empty tuples must not be created. Copies a value (scalar or array) into the element of a tuple.
| [in] | tuple | is the handle of the tuple whose element is to be set. |
| [in] | index | is the index of the element that is set. |
| [in] | value | is the handle to the value that is copied. |
value was successfully copied into the tuple element at the specified @index. tuple or value are NULL. index is out of range.