Package ghidra.util.datastruct
Class ManagedDataTable
- java.lang.Object
-
- ghidra.util.datastruct.DataTable
-
- ghidra.util.datastruct.ManagedDataTable
-
- All Implemented Interfaces:
java.io.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxRow()Returns the max row that contains data.booleanhasRow(int row)returns true if the given row contains an objectvoidputBoolean(int row, int col, boolean value)Stores a boolean value in the table at the given row and column.voidputByte(int row, int col, byte value)Stores a byte value in the table at the given row and column.voidputByteArray(int row, int col, byte[] value)Stores an byte array in the table at the given row and column.voidputDouble(int row, int col, double value)Stores a double value in the table at the given row and column.voidputDoubleArray(int row, int col, double[] value)Stores a double array in the table at the given row and column.voidputFloat(int row, int col, float value)Stores a float value in the table at the given row and column.voidputFloatArray(int row, int col, float[] value)Stores a float array in the table at the given row and column.voidputInt(int row, int col, int value)Stores an int value in the table at the given row and column.voidputIntArray(int row, int col, int[] value)Stores an int array in the table at the given row and column.voidputLong(int row, int col, long value)Stores a long value in the table at the given row and column.voidputLongArray(int row, int col, long[] value)Stores an long array in the table at the given row and column.voidputShort(int row, int col, short value)Stores a short value in the table at the given row and column.voidputShortArray(int row, int col, short[] value)Stores an short array in the table at the given row and column.voidputString(int row, int col, java.lang.String value)Stores an String in the table at the given row and column.voidremoveRow(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
-
-
-
-
Method Detail
-
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.
-
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:
putBooleanin classDataTable- 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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
putString
public void putString(int row, int col, java.lang.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.
-
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:
putByteArrayin classDataTable- 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:
putShortArrayin classDataTable- 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:
putIntArrayin classDataTable- 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:
putFloatArrayin classDataTable- 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:
putDoubleArrayin classDataTable- 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:
putLongArrayin classDataTable- Parameters:
row- The row into the table (specifies which object)col- The column of the table. (specifies which field)value- The value to store.
-
-