TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IBlockIndexOrder in Tinman.Core.Database

Base interface for classes that provide index semantic for a BlockIndex.

interface IBlockIndexOrder with <TKey>  
  <in TValue>  

Remarks

The value ordering of the block index is defined by the method ValueCompare. Keys are extracted from values via ValueToKey.

Methods

ValueCompare

Compares the given key to the specified value.

method ValueCompare (TKey key, TValue value)
type int32
params key The key.
  value The value.
returns -1 if key is less than value, 1 if key is greater than value and 0 if key is equal to value.

ValueToKey

Returns the key for the given value.

method ValueToKey (TValue value)
type TKey
params value The entry value.
returns The entry key.

Remarks:

This is a generic method; it operates independently from the current index content.