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 int
getMaxRow()
Returns the max row that contains data.boolean
hasRow(int row)
returns true if the given row contains an objectvoid
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, java.lang.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
-
-
-
-
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:
putBoolean
in 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:
putByteArray
in 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:
putShortArray
in 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:
putIntArray
in 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:
putFloatArray
in 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:
putDoubleArray
in 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:
putLongArray
in 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.
-
-