Package ghidra.util.database.spatial
Class DBTreeDataRecord<DS extends BoundedShape<NS>,NS extends BoundingShape<NS>,T>
java.lang.Object
ghidra.program.database.DatabaseObject
ghidra.util.database.DBAnnotatedObject
ghidra.util.database.spatial.DBTreeRecord<DS,NS>
ghidra.util.database.spatial.DBTreeDataRecord<DS,NS,T>
- Direct Known Subclasses:
DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData,DBTraceObjectValueData
public abstract class DBTreeDataRecord<DS extends BoundedShape<NS>,NS extends BoundingShape<NS>,T>
extends DBTreeRecord<DS,NS>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceDBTreeDataRecord.RecordEntry<DS extends BoundedShape<NS>,NS extends BoundingShape<NS>, T> -
Field Summary
Fields inherited from class ghidra.program.database.DatabaseObject
key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DBTreeDataRecord.RecordEntry<DS, NS, T> asEntry()protected intGet the total number of data entries in this sub-tree For data entries, this is 1.protected abstract TGet the value of this record Note that the value is sometimes the record itself, i.e., this method returnsthis.protected abstract voidsetRecordValue(T value) Set the value of this record Note that the value is sometimes the record itself.protected abstract booleanshapeEquals(DS shape) toString()Methods inherited from class ghidra.util.database.spatial.DBTreeRecord
getBounds, getParentKey, getShape, setParentKey, setShapeMethods inherited from class ghidra.util.database.DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, fresh, getObjectKey, getTableName, isDeleted, refresh, refresh, update, update, update, updateMethods inherited from class ghidra.program.database.DatabaseObject
checkDeleted, checkIsValid, checkIsValid, getKey, isDeleted, isInvalid, keyChanged, setDeleted, setInvalid, validate
-
Constructor Details
-
DBTreeDataRecord
-
-
Method Details
-
shapeEquals
-
toString
-
setRecordValue
Set the value of this record Note that the value is sometimes the record itself. In this case, this method expectsvalueto benulland does nothing. SeeSpatialMap.put(BoundedShape, Object)for more details of this pattern.- Parameters:
value- the record's new value
-
getRecordValue
Get the value of this record Note that the value is sometimes the record itself, i.e., this method returnsthis. SeeSpatialMap.put(BoundedShape, Object)for more details of this pattern.- Returns:
- the record's value
-
asEntry
-
getDataCount
protected int getDataCount()Description copied from class:DBTreeRecordGet the total number of data entries in this sub-tree For data entries, this is 1.- Specified by:
getDataCountin classDBTreeRecord<DS extends BoundedShape<NS>,NS extends BoundingShape<NS>> - Returns:
- the data count
-