public interface CuckooTable
Modifier and Type | Method and Description |
---|---|
TagPosition |
deleteTag(int bucketIndex,
int tag)
Delete a tag in specified bucket and return its position.
|
TagPosition |
findTag(int bucketIndex,
int tag)
Find a tag in specified bucket and return its position.
|
TagPosition |
findTag(int bucketIndex1,
int bucketIndex2,
int tag)
Find a tag in specified two buckets and return its position.
|
int |
getBitsPerTag() |
int |
getNumBuckets() |
int |
getNumTagsPerBuckets() |
int |
getSizeInBytes() |
int |
getSizeInTags() |
int |
insertOrKickTag(int bucketIndex,
int tag)
Insert a tag into specified bucket.
|
int |
readTag(int bucketIndex,
int slotIndex)
Reads the value of tag in specified position.
|
void |
writeTag(int bucketIndex,
int slotIndex,
int tag)
Set the value of tag in specified position.
|
int readTag(int bucketIndex, int slotIndex)
bucketIndex
- the bucket indexslotIndex
- the slot in bucketvoid writeTag(int bucketIndex, int slotIndex, int tag)
bucketIndex
- the bucket indexslotIndex
- the slot in buckettag
- the tag value to writeTagPosition findTag(int bucketIndex, int tag)
bucketIndex
- the bucket indextag
- the tag value to findTagPosition findTag(int bucketIndex1, int bucketIndex2, int tag)
bucketIndex1
- the first bucket indexbucketIndex2
- the second bucket indextag
- the tag value to findTagPosition deleteTag(int bucketIndex, int tag)
bucketIndex
- the bucket to delete fromtag
- the tag value to findint insertOrKickTag(int bucketIndex, int tag)
bucketIndex
- the bucket indextag
- the tag value to findint getNumTagsPerBuckets()
int getNumBuckets()
int getBitsPerTag()
int getSizeInBytes()
int getSizeInTags()
Copyright © 2023. All Rights Reserved.