ICache.accessIndex

Obtains the index of the cache item that corresponds to node and updates the access time. If realtime is enabled, access_time is expected to be equal to or greater than the time stored in node. If disabled and the access time is less, the node will not be updated and a value of at least length returned.

class ICache
protected
size_t
accessIndex
out (index) { assert (index < this.insert, "cache index out of bounds"); }

Parameters

node TimeToIndex.Node

time-to-index tree node

access_time time_t

access time

Return Value

Type: size_t

the index of the corresponding cache item or a value of at least length if realtime is disabled and the access time is less than the access time in the node.

Out: If realtime is enabled, the returned index is less than length.

Meta