Class DBTreeDataRecord<DS extends BoundedShape<NS>, NS extends BoundingShape<NS>, T>
java.lang.Object
ghidra.program.database.DbObject
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 ClassesChangeModifier and TypeClassDescriptionprotected static interfaceDBTreeDataRecord.RecordEntry<DS extends BoundedShape<NS>, NS extends BoundingShape<NS>, T> -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
ChangeModifier 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 DBTreeRecord
getBounds, getParentKey, getShape, setParentKey, setShapeMethods inherited from class DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, fresh, getObjectKey, getTableName, isDeleted, refresh, update, update, update, updateMethods inherited from class DbObject
checkDeleted, getKey, isDeleted, isValid, keyChanged, needsRefreshing, refreshIfNeeded, setDeleted, setInvalid, setValid, 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
-