LruIndexer

least recently used indexer

Constructors

this
this(size_t maxCacheLen)
Undocumented in source.

Members

Aliases

IndexType
alias IndexType = IT
Undocumented in source.
IndexedType
alias IndexedType = Tuple!(IndexType, VertexType)
Undocumented in source.
VertexType
alias VertexType = VT
Undocumented in source.

Functions

index
IndexType index(VertexType vertex, VOR vertexOutRange)

index the given vertex. returns the index. if the vertex was not indexed yet, vfun is called with the vertex as argument

Variables

cache
DList!IndexedType cache;
Undocumented in source.
cacheLen
size_t cacheLen;
Undocumented in source.
idx
IndexType idx;
Undocumented in source.
maxCacheLen
size_t maxCacheLen;
Undocumented in source.

Meta