Class clove::NativeDatasourceNode

class clove::NativeDatasourceNode

A node value implementation for clove::NativeDatasource.

Not intended for direct construction!

Public Functions

rowCount()

Returns the number of children rows.

columnCount()

Returns the number of children columns.

toRow(ir)

Returns the clove::NativeDatasourceNode which is in the same column as this one, but in a different row.

Parameters
  • ir: The row index.

toColumn(ic)

Returns the clove::NativeDatasourceNode which is in the same row as this one, but in a different column.

Parameters
  • ic: The column index.

valuePointer()

Returns a clove::DatasourceValuePointer pointing to this node.

getValue()

Returns the node value.

getMetadata()

Returns the node metadata.

See also clove::Datasource::getMetadata().

setValue(v)

Sets the node value.

Parameters
  • v: The new value.

setMetadata(k, v)

Sets a node metadata value.

Parameters
  • k: The metadata key, like ‘icon’.

  • v: The new value.

removeRow(ir)

Removes a row in this node.

Parameters
  • ir: The row index.

removeColumn(ic)

Removes a column in this node.

Parameters
  • ic: The column index.

addRow(vals)

Adds a row to this node.

Parameters
  • vals: A list of new values (one for each column).

addColumn(vals)

Adds a column to this node.

Parameters
  • vals: A list of new values (one for each row).

insertRow(i, vals)

Inserts a row to this node.

Parameters
  • i: The insertion position.

  • vals: A list of new values (one for each column).

insertColumn(i, vals)

Inserts a column to this node.

Parameters
  • i: The insertion position.

  • vals: A list of new values (one for each row).

getChild(irow, icol)

Returns a child clove::NativeDatasourceNode.

Parameters
  • irow: The row index.

  • icol: The column index.