D
- the data type.A
- the address type.public interface Buffer<D,A>
Modifier and Type | Method and Description |
---|---|
D |
getData(A address)
Returns the data associated with the given address.
|
boolean |
isHit(A address)
Checks whether the given address causes a hit.
|
ru.ispras.fortress.util.Pair<ru.ispras.fortress.data.types.bitvector.BitVector,ru.ispras.fortress.data.types.bitvector.BitVector> |
seeData(ru.ispras.fortress.data.types.bitvector.BitVector index,
ru.ispras.fortress.data.types.bitvector.BitVector way)
Returns data and associated address without changing the state.
|
D |
setData(A address,
D data)
Updates the data associated with the given address.
|
boolean isHit(A address)
address
- the data address.true
if the address causes a hit; false
otherwise.D getData(A address)
address
- the data address.null
otherwise.D setData(A address, D data)
address
- the data address.data
- the new data.null
otherwise.ru.ispras.fortress.util.Pair<ru.ispras.fortress.data.types.bitvector.BitVector,ru.ispras.fortress.data.types.bitvector.BitVector> seeData(ru.ispras.fortress.data.types.bitvector.BitVector index, ru.ispras.fortress.data.types.bitvector.BitVector way)
index
- Set index.way
- Line index.null
if it is not found.