Click or drag to resize

CacheKeyType, ValueType Class

A general distance-associative cache.
Inheritance Hierarchy
SystemObject
  Demo3D.Visuals.KJECacheKeyType, ValueType

Namespace:  Demo3D.Visuals.KJE
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public class Cache<KeyType, ValueType>

Type Parameters

KeyType
The key type (upon which distances between keys can be calculated).
ValueType
The value type.

The CacheKeyType, ValueType type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCapacity
The maximum capacity.
Public propertyCount
The current number of entries.
Top
Methods
  NameDescription
Public methodAdd
Adds the specified key-value pair to the cache.
Public methodClear
Clears the cache.
Public methodTryGetNearest
Tries to get the value associated with the key nearest to the specified key.
Top
See Also