Vuo  1.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions

Description

Information structured in rows and columns.

Classes

struct  VuoTable
 Information structured in rows and columns. More...
 

Functions

VuoTable VuoTable_makeFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value.
 
struct json_objectVuoTable_getJson (const VuoTable value)
 Encodes value as a JSON object that can only be decoded in the same process.
 
struct json_objectVuoTable_getInterprocessJson (const VuoTable value)
 Encodes value as a JSON object that can be decoded in a separate process.
 
char * VuoTable_getSummary (const VuoTable value)
 Returns a human-readable description of value.
 
VuoTable VuoTable_makeEmpty (void)
 Returns a table with nothing in it.
 
VuoTable VuoTable_makeFromText (VuoText text, VuoTableFormat format)
 Returns a table parsed from text, a CSV- or TSV-formatted string.
 
VuoText VuoTable_serialize (VuoTable table, VuoTableFormat format)
 Returns a CSV- or TSV-formatted string representation of a table.
 
VuoTable VuoTable_sort_VuoInteger (VuoTable table, VuoInteger columnIndex, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader)
 Sorts the table's rows based on the values in the given column.
 
VuoTable VuoTable_sort_VuoText (VuoTable table, VuoText columnHeader, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader)
 Sorts the table's rows based on the values in the given column.
 
VuoTable VuoTable_transpose (VuoTable table)
 Diagonally flips the table.
 
VuoList_VuoText VuoTable_getRow_VuoInteger (VuoTable table, VuoInteger rowIndex, bool includeHeader)
 Returns the data values in the row at rowIndex (indexed from 1).
 
VuoList_VuoText VuoTable_getRow_VuoText (VuoTable table, VuoText rowHeader, bool includeHeader)
 Returns the data values in the row whose header (value in first column) matches rowHeader.
 
VuoList_VuoText VuoTable_getColumn_VuoInteger (VuoTable table, VuoInteger columnIndex, bool includeHeader)
 Returns the data values in the column at columnIndex (indexed from 1).
 
VuoList_VuoText VuoTable_getColumn_VuoText (VuoTable table, VuoText columnHeader, bool includeHeader)
 Returns the data values in the column whose header (value in first row) matches columnHeader.
 
VuoText VuoTable_getItem_VuoInteger_VuoInteger (VuoTable table, VuoInteger rowIndex, VuoInteger columnIndex)
 Returns the data value at row rowIndex and column columnIndex.
 
VuoText VuoTable_getItem_VuoInteger_VuoText (VuoTable table, VuoInteger rowIndex, VuoText columnHeader)
 Returns the data value at row rowIndex and column with header columnHeader.
 
VuoText VuoTable_getItem_VuoText_VuoInteger (VuoTable table, VuoText rowHeader, VuoInteger columnIndex)
 Returns the data value at row with header rowHeader and column columnIndex.
 
VuoText VuoTable_getItem_VuoText_VuoText (VuoTable table, VuoText rowHeader, VuoText columnHeader)
 Returns the data value at row with header rowHeader and column with header columnHeader.
 
VuoTable VuoTable_addRow (VuoTable table, VuoListPosition position, VuoList_VuoText values)
 Returns a table in which values has been added as a new row, either before the first or after the last row.
 
VuoTable VuoTable_addColumn (VuoTable table, VuoListPosition position, VuoList_VuoText values)
 Returns a table in which values has been added as a new column, either before the first or after the last column.
 
VuoTable VuoTable_changeRow_VuoInteger (VuoTable table, VuoInteger rowIndex, VuoList_VuoText newValues, bool preserveHeader)
 Returns a table in which newValues has replaced the row at rowIndex.
 
VuoTable VuoTable_changeRow_VuoText (VuoTable table, VuoText rowHeader, VuoList_VuoText newValues, bool preserveHeader)
 Returns a table in which newValues has replaced the row with header rowHeader.
 
VuoTable VuoTable_changeColumn_VuoInteger (VuoTable table, VuoInteger columnIndex, VuoList_VuoText newValues, bool preserveHeader)
 Returns a table in which newValues has replaced the column at columnIndex.
 
VuoTable VuoTable_changeColumn_VuoText (VuoTable table, VuoText columnHeader, VuoList_VuoText newValues, bool preserveHeader)
 Returns a table in which newValues has replaced the column with header columnHeader.
 
VuoTable VuoTable_changeItem_VuoInteger_VuoInteger (VuoTable table, VuoInteger rowIndex, VuoInteger columnIndex, VuoText newValue)
 Returns a table in which newValue has replaced the value at row rowIndex and column columnIndex.
 
VuoTable VuoTable_changeItem_VuoInteger_VuoText (VuoTable table, VuoInteger rowIndex, VuoText columnHeader, VuoText newValue)
 Returns a table in which newValue has replaced the value at row rowIndex and column with header columnHeader.
 
VuoTable VuoTable_changeItem_VuoText_VuoInteger (VuoTable table, VuoText rowHeader, VuoInteger columnIndex, VuoText newValue)
 Returns a table in which newValue has replaced the value at row with header rowHeader and column columnIndex.
 
VuoTable VuoTable_changeItem_VuoText_VuoText (VuoTable table, VuoText rowHeader, VuoText columnHeader, VuoText newValue)
 Returns a table in which newValue has replaced the value at row with header rowHeader and column with header columnHeader.
 
VuoTable VuoTable_removeRow (VuoTable table, VuoListPosition position)
 Returns a table in which the first or last row has been removed.
 
VuoTable VuoTable_removeColumn (VuoTable table, VuoListPosition position)
 Returns a table in which the first or last column has been removed.
 
void VuoTable_retain (VuoTable value)
 Replaces the auto-generated function in order to retain the items within vectors.
 
void VuoTable_release (VuoTable value)
 Replaces the auto-generated function in order to release the items within vectors.
 
VuoTable VuoTable_makeFromString (const char *str)
 Automatically generated function.
 
char * VuoTable_getString (const VuoTable value)
 Automatically generated function.
 
char * VuoTable_getInterprocessString (const VuoTable value)
 Automatically generated function.
 

Class Documentation

struct VuoTable
Class Members
size_t columnCount The number of columns. The maximum of (*data)[i].size().
void * data The data items (a vector< vector<VuoText> > with outer vectors as rows and inner vectors as columns), including headers.
size_t rowCount The number of rows. Same as (*data).size().

Function Documentation

VuoTable VuoTable_addColumn ( VuoTable  table,
VuoListPosition  position,
VuoList_VuoText  values 
)

Returns a table in which values has been added as a new column, either before the first or after the last column.

VuoTable VuoTable_addRow ( VuoTable  table,
VuoListPosition  position,
VuoList_VuoText  values 
)

Returns a table in which values has been added as a new row, either before the first or after the last row.

VuoTable VuoTable_changeColumn_VuoInteger ( VuoTable  table,
VuoInteger  columnIndex,
VuoList_VuoText  newValues,
bool  preserveHeader 
)

Returns a table in which newValues has replaced the column at columnIndex.

VuoTable VuoTable_changeColumn_VuoText ( VuoTable  table,
VuoText  columnHeader,
VuoList_VuoText  newValues,
bool  preserveHeader 
)

Returns a table in which newValues has replaced the column with header columnHeader.

VuoTable VuoTable_changeItem_VuoInteger_VuoInteger ( VuoTable  table,
VuoInteger  rowIndex,
VuoInteger  columnIndex,
VuoText  newValue 
)

Returns a table in which newValue has replaced the value at row rowIndex and column columnIndex.

VuoTable VuoTable_changeItem_VuoInteger_VuoText ( VuoTable  table,
VuoInteger  rowIndex,
VuoText  columnHeader,
VuoText  newValue 
)

Returns a table in which newValue has replaced the value at row rowIndex and column with header columnHeader.

VuoTable VuoTable_changeItem_VuoText_VuoInteger ( VuoTable  table,
VuoText  rowHeader,
VuoInteger  columnIndex,
VuoText  newValue 
)

Returns a table in which newValue has replaced the value at row with header rowHeader and column columnIndex.

VuoTable VuoTable_changeItem_VuoText_VuoText ( VuoTable  table,
VuoText  rowHeader,
VuoText  columnHeader,
VuoText  newValue 
)

Returns a table in which newValue has replaced the value at row with header rowHeader and column with header columnHeader.

VuoTable VuoTable_changeRow_VuoInteger ( VuoTable  table,
VuoInteger  rowIndex,
VuoList_VuoText  newValues,
bool  preserveHeader 
)

Returns a table in which newValues has replaced the row at rowIndex.

VuoTable VuoTable_changeRow_VuoText ( VuoTable  table,
VuoText  rowHeader,
VuoList_VuoText  newValues,
bool  preserveHeader 
)

Returns a table in which newValues has replaced the row with header rowHeader.

VuoList_VuoText VuoTable_getColumn_VuoInteger ( VuoTable  table,
VuoInteger  columnIndex,
bool  includeHeader 
)

Returns the data values in the column at columnIndex (indexed from 1).

Empty cells are returned as NULL.

VuoList_VuoText VuoTable_getColumn_VuoText ( VuoTable  table,
VuoText  columnHeader,
bool  includeHeader 
)

Returns the data values in the column whose header (value in first row) matches columnHeader.

Empty cells are returned as NULL.

struct json_object* VuoTable_getInterprocessJson ( const VuoTable  value)
read

Encodes value as a JSON object that can be decoded in a separate process.

char* VuoTable_getInterprocessString ( const VuoTable  value)

Automatically generated function.

VuoText VuoTable_getItem_VuoInteger_VuoInteger ( VuoTable  table,
VuoInteger  rowIndex,
VuoInteger  columnIndex 
)

Returns the data value at row rowIndex and column columnIndex.

VuoText VuoTable_getItem_VuoInteger_VuoText ( VuoTable  table,
VuoInteger  rowIndex,
VuoText  columnHeader 
)

Returns the data value at row rowIndex and column with header columnHeader.

VuoText VuoTable_getItem_VuoText_VuoInteger ( VuoTable  table,
VuoText  rowHeader,
VuoInteger  columnIndex 
)

Returns the data value at row with header rowHeader and column columnIndex.

VuoText VuoTable_getItem_VuoText_VuoText ( VuoTable  table,
VuoText  rowHeader,
VuoText  columnHeader 
)

Returns the data value at row with header rowHeader and column with header columnHeader.

struct json_object* VuoTable_getJson ( const VuoTable  value)
read

Encodes value as a JSON object that can only be decoded in the same process.

VuoList_VuoText VuoTable_getRow_VuoInteger ( VuoTable  table,
VuoInteger  rowIndex,
bool  includeHeader 
)

Returns the data values in the row at rowIndex (indexed from 1).

Empty cells are returned as NULL.

VuoList_VuoText VuoTable_getRow_VuoText ( VuoTable  table,
VuoText  rowHeader,
bool  includeHeader 
)

Returns the data values in the row whose header (value in first column) matches rowHeader.

Empty cells are returned as NULL.

char* VuoTable_getString ( const VuoTable  value)

Automatically generated function.

char* VuoTable_getSummary ( const VuoTable  value)

Returns a human-readable description of value.

VuoTable VuoTable_makeEmpty ( void  )

Returns a table with nothing in it.

VuoTable VuoTable_makeFromJson ( struct json_object js)

Decodes the JSON object js to create a new value.

VuoTable VuoTable_makeFromString ( const char *  str)

Automatically generated function.

VuoTable VuoTable_makeFromText ( VuoText  text,
VuoTableFormat  format 
)

Returns a table parsed from text, a CSV- or TSV-formatted string.

void VuoTable_release ( VuoTable  value)

Replaces the auto-generated function in order to release the items within vectors.

VuoTable VuoTable_removeColumn ( VuoTable  table,
VuoListPosition  position 
)

Returns a table in which the first or last column has been removed.

VuoTable VuoTable_removeRow ( VuoTable  table,
VuoListPosition  position 
)

Returns a table in which the first or last row has been removed.

void VuoTable_retain ( VuoTable  value)

Replaces the auto-generated function in order to retain the items within vectors.

VuoText VuoTable_serialize ( VuoTable  table,
VuoTableFormat  format 
)

Returns a CSV- or TSV-formatted string representation of a table.

VuoTable VuoTable_sort_VuoInteger ( VuoTable  table,
VuoInteger  columnIndex,
VuoTextSort  sortType,
VuoSortOrder  sortOrder,
bool  firstRowIsHeader 
)

Sorts the table's rows based on the values in the given column.

columnIndex is clamped to a valid index (between 1 and columnCount).

If firstRowIsHeader is true, the first row is left in place and the remaining rows are sorted.

If multiple items in the selected column have the same value, this function preserves their ordering (stable sort).

VuoTable VuoTable_sort_VuoText ( VuoTable  table,
VuoText  columnHeader,
VuoTextSort  sortType,
VuoSortOrder  sortOrder,
bool  firstRowIsHeader 
)

Sorts the table's rows based on the values in the given column.

The first column whose header (value in first row) contains columnHeader (case-insensitive comparison) is selected. If no such column exists, the original (unsorted) table is returned.

VuoTable VuoTable_transpose ( VuoTable  table)

Diagonally flips the table.