Struct LruIndexer

least recently used indexer

struct LruIndexer(IT, VT) ;

Constructors

NameDescription
this (maxCacheLen)

Fields

NameTypeDescription
cache DList!IndexedType
cacheLen size_t
idx LruIndexer.IndexType
maxCacheLen size_t

Methods

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

Aliases

NameDescription
IndexedType
IndexType
VertexType