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:
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    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 java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

    • ManagedDataTable Link icon

      public ManagedDataTable()
  • Method Details Link icon

    • hasRow Link icon

      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 Link icon

      public int getMaxRow()
      Returns the max row that contains data.
    • removeRow Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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.