Package ghidra.pcode.exec
Class AbstractLongOffsetPcodeExecutorStatePiece.CacheingSpaceMap<B,S>
java.lang.Object
ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece.AbstractSpaceMap<S>
ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece.CacheingSpaceMap<B,S>
- Type Parameters:
B
- the type of the object backing the cache for each address spaceS
- the type of cache for each address space
- Enclosing class:
AbstractLongOffsetPcodeExecutorStatePiece<A,
T, S>
public abstract static class AbstractLongOffsetPcodeExecutorStatePiece.CacheingSpaceMap<B,S>
extends AbstractLongOffsetPcodeExecutorStatePiece.AbstractSpaceMap<S>
Use this when each S is possibly a cache to some other state (backing) object
-
Field Summary
Fields inherited from class ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece.AbstractSpaceMap
spaces
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract B
getBacking
(AddressSpace space) Get the object backing the cache for the given address spacegetForSpace
(AddressSpace space, boolean toWrite) protected abstract S
newSpace
(AddressSpace space, B backing) Construct a new space internally associated with the given address space, having the given backingMethods inherited from class ghidra.pcode.exec.AbstractLongOffsetPcodeExecutorStatePiece.AbstractSpaceMap
fork, fork, fork, values
-
Constructor Details
-
CacheingSpaceMap
public CacheingSpaceMap() -
CacheingSpaceMap
-
-
Method Details
-
getBacking
Get the object backing the cache for the given address space- Parameters:
space
- the space- Returns:
- the backing object
-
newSpace
Construct a new space internally associated with the given address space, having the given backingAs the name implies, this often simply wraps
S
's constructor- Parameters:
space
- the address spacebacking
- the backing, if applicable. null for the unique space- Returns:
- the new space
-
getForSpace
- Specified by:
getForSpace
in classAbstractLongOffsetPcodeExecutorStatePiece.AbstractSpaceMap<S>
-