Package ghidra.util.datastruct

# Class ManagedDataTable

java.lang.Object
ghidra.util.datastruct.DataTable
ghidra.util.datastruct.ManagedDataTable

All Implemented Interfaces:
  `Serializable`

public class ManagedDataTable extends DataTable
Data table that keeps track of rows that are occupied.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ManagedDataTable()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getMaxRow()`
  Returns the max row that contains data.
  `boolean`
  `hasRow(int row)`
  returns true if the given row contains an object
  `void`
  `putBoolean(int row, int col, boolean value)`
  Stores a boolean value in the table at the given row and column.
  `void`
  `putByte(int row, int col, byte value)`
  Stores a byte value in the table at the given row and column.
  `void`
  `putByteArray(int row, int col, byte[] value)`
  Stores an byte array in the table at the given row and column.
  `void`
  `putDouble(int row, int col, double value)`
  Stores a double value in the table at the given row and column.
  `void`
  `putDoubleArray(int row, int col, double[] value)`
  Stores a double array in the table at the given row and column.
  `void`
  `putFloat(int row, int col, float value)`
  Stores a float value in the table at the given row and column.
  `void`
  `putFloatArray(int row, int col, float[] value)`
  Stores a float array in the table at the given row and column.
  `void`
  `putInt(int row, int col, int value)`
  Stores an int value in the table at the given row and column.
  `void`
  `putIntArray(int row, int col, int[] value)`
  Stores an int array in the table at the given row and column.
  `void`
  `putLong(int row, int col, long value)`
  Stores a long value in the table at the given row and column.
  `void`
  `putLongArray(int row, int col, long[] value)`
  Stores an long array in the table at the given row and column.
  `void`
  `putShort(int row, int col, short value)`
  Stores a short value in the table at the given row and column.
  `void`
  `putShortArray(int row, int col, short[] value)`
  Stores an short array in the table at the given row and column.
  `void`
  `putString(int row, int col, String value)`
  Stores an String in the table at the given row and column.
  `void`
  `removeRow(int row)`
  Removes the given row from the table.

  ### Methods inherited from class ghidra.util.datastruct.DataTable

  `copyRowTo, getBoolean, getByte, getByteArray, getDouble, getDoubleArray, getFloat, getFloatArray, getInt, getIntArray, getLong, getLongArray, getObject, getShort, getShortArray, getString, getStringArray, putObject, putStringArray`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ManagedDataTable

    public ManagedDataTable()

- ## Method Details

  - ### hasRow

    public boolean hasRow(int row)
    returns true if the given row contains an object
    Parameters:
      `row` - the row in the table
    Returns:
      true if the given row contains an object

  - ### getMaxRow

    public int getMaxRow()
    Returns the max row that contains data.

  - ### removeRow

    public void removeRow(int row)
    Removes the given row from the table.
    Overrides:
      `removeRow` in class `DataTable`
    Parameters:
      `row` - The row to be removed

  - ### putBoolean

    public void putBoolean(int row, int col, boolean value)
    Stores a boolean value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putBoolean` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putByte

    public void putByte(int row, int col, byte value)
    Stores a byte value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putByte` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putShort

    public void putShort(int row, int col, short value)
    Stores a short value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putShort` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putInt

    public void putInt(int row, int col, int value)
    Stores an int value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putInt` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putLong

    public void putLong(int row, int col, long value)
    Stores a long value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putLong` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putDouble

    public void putDouble(int row, int col, double value)
    Stores a double value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putDouble` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putFloat

    public void putFloat(int row, int col, float value)
    Stores a float value in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putFloat` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putString

    public void putString(int row, int col, String value)
    Stores an String in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putString` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putByteArray

    public void putByteArray(int row, int col, byte[] value)
    Stores an byte array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putByteArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putShortArray

    public void putShortArray(int row, int col, short[] value)
    Stores an short array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putShortArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putIntArray

    public void putIntArray(int row, int col, int[] value)
    Stores an int array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putIntArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putFloatArray

    public void putFloatArray(int row, int col, float[] value)
    Stores a float array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putFloatArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putDoubleArray

    public void putDoubleArray(int row, int col, double[] value)
    Stores a double array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putDoubleArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.

  - ### putLongArray

    public void putLongArray(int row, int col, long[] value)
    Stores an long array in the table at the given row and column. Note - all values in a given column must be of the same type.
    Overrides:
      `putLongArray` in class `DataTable`
    Parameters:
      `row` - The row into the table (specifies which object)
      `col` - The column of the table. (specifies which field)
      `value` - The value to store.