Class DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData<T>
- All Implemented Interfaces:
TraceAddressSnapRange,BoundedShape<TraceAddressSnapRange>,BoundingShape<TraceAddressSnapRange>,Rectangle2D<Address,Long, TraceAddressSnapRange>
- Direct Known Subclasses:
AbstractDBTraceCodeUnit,AbstractDBTracePropertyMap.DBTraceIntPropertyMapEntry,AbstractDBTracePropertyMap.DBTraceLongPropertyMapEntry,AbstractDBTracePropertyMap.DBTraceSaveablePropertyMapEntry,AbstractDBTracePropertyMap.DBTraceStringPropertyMapEntry,AbstractDBTracePropertyMap.DBTraceVoidPropertyMapEntry,DBTraceBookmark,DBTraceCommentAdapter.DBTraceCommentEntry,DBTraceDataSettingsAdapter.DBTraceSettingsEntry,DBTraceEquateSpace.DBTraceEquateReference,DBTraceReferenceSpace.DBTraceReferenceEntry,DBTraceReferenceSpace.DBTraceXRefEntry,DBTraceRegisterContextManager.DBTraceRegisterContextEntry,DBTraceSymbolManager.DBTraceSymbolIDEntry
- Enclosing class:
DBTraceAddressSnapRangePropertyMapTree<T,DR extends DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData<T>>
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.util.database.spatial.DBTreeDataRecord
DBTreeDataRecord.RecordEntry<DS extends BoundedShape<NS>,NS extends BoundingShape<NS>, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Lifespanprotected AddressRangeprotected final DBTraceAddressSnapRangePropertyMapTree<T, ? extends DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData<T>> Fields inherited from class ghidra.program.database.DatabaseObject
key -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDBTraceAddressSnapRangePropertyMapData(DBTraceAddressSnapRangePropertyMapTree<T, ?> tree, DBCachedObjectStore<?> store, DBRecord record) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoSetLifespan(Lifespan lifespan) protected voiddoSetRange(AddressRange range) booleanprotected voidfresh(boolean created) Extension point: Called when the object's fields are populated.longgetRange()getShape()getSpace()inthashCode()voidsetParentKey(long parentKey) voidsetShape(TraceAddressSnapRange shape) booleanshapeEquals(TraceAddressSnapRange shape) Methods inherited from class ghidra.util.database.spatial.DBTreeDataRecord
asEntry, getDataCount, getRecordValue, setRecordValue, toStringMethods inherited from class ghidra.util.database.DBAnnotatedObject
doRefresh, doUpdateAll, doUpdated, doWrite, 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, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.util.database.spatial.rect.Rectangle2D
computeAreaIntersection, computeAreaUnionBounds, computeCentroidDistance, contains, contains, doEquals, doHashCode, enclosedBy, encloses, getArea, getCenter, getMargin, intersection, intersects, unionBoundsMethods inherited from interface ghidra.trace.model.TraceAddressSnapRange
description, getX1, getX2, getY1, getY2, immutable
-
Field Details
-
tree
protected final DBTraceAddressSnapRangePropertyMapTree<T,? extends DBTraceAddressSnapRangePropertyMapTree.AbstractDBTraceAddressSnapRangePropertyMapData<T>> tree -
range
-
lifespan
-
-
Constructor Details
-
AbstractDBTraceAddressSnapRangePropertyMapData
public AbstractDBTraceAddressSnapRangePropertyMapData(DBTraceAddressSnapRangePropertyMapTree<T, ?> tree, DBCachedObjectStore<?> store, DBRecord record)
-
-
Method Details
-
fresh
Description copied from class:DBAnnotatedObjectExtension point: Called when the object's fields are populated.This provides an opportunity for the object to initialize any non-database-backed fields that depend on the database-backed fields. Note that its use may indicate a situation better solved by a custom
DBCachedObjectStoreFactory.DBFieldCodec. If both the database-backed and non-database-backed fields are used frequently, then a codec may not be indicated. If the database-backed fields are only used in this method or to encode another frequently-used field, then a codec is likely better.For a new object, the database-backed fields remain at their initial values. They will be saved after this method returns, so they may be further initialized with custom logic.
For an object loaded from the database, the database-backed fields are already populated from the record when this method is called. They are not automatically saved after this method returns. This method should not further initialize database-backed fields in this case.
- Overrides:
freshin classDBAnnotatedObject- Parameters:
created-truewhen object is being created, orfalsewhen it is being loaded.- Throws:
IOException- if further initialization fails.
-
setParentKey
public void setParentKey(long parentKey) - Specified by:
setParentKeyin classDBTreeRecord<TraceAddressSnapRange,TraceAddressSnapRange>
-
getParentKey
public long getParentKey()- Specified by:
getParentKeyin classDBTreeRecord<TraceAddressSnapRange,TraceAddressSnapRange>
-
setShape
- Specified by:
setShapein classDBTreeRecord<TraceAddressSnapRange,TraceAddressSnapRange>
-
getShape
- Specified by:
getShapein classDBTreeRecord<TraceAddressSnapRange,TraceAddressSnapRange>
-
getBounds
- Specified by:
getBoundsin interfaceBoundedShape<T>- Specified by:
getBoundsin interfaceTraceAddressSnapRange- Specified by:
getBoundsin classDBTreeRecord<TraceAddressSnapRange,TraceAddressSnapRange>
-
getSpace
- Specified by:
getSpacein interfaceRectangle2D<Address,Long, TraceAddressSnapRange>
-
getRange
- Specified by:
getRangein interfaceTraceAddressSnapRange
-
doSetRange
-
doSetLifespan
-
getLifespan
- Specified by:
getLifespanin interfaceTraceAddressSnapRange
-
shapeEquals
- Specified by:
shapeEqualsin classDBTreeDataRecord<TraceAddressSnapRange,TraceAddressSnapRange, T>
-
equals
-
hashCode
public int hashCode()
-