[ILNumerics Core Module]
ILNumerics.Core.MiscKeyMapperElementType, SubelementType
ILNumerics.Core.MiscASCIIKeyMapper
Namespace: ILNumerics.Core.Misc
Assembly: ILNumerics.Core (in ILNumerics.Core.dll) Version: 5.5.0.0 (5.5.7503.3146)
Type Parameters
- ElementType
- Type of elements. Elements are constructed out of any number of subelements
- SubelementType
- Type of subelements
The KeyMapperElementType, SubelementType type exposes the following members.
Name | Description | |
---|---|---|
KeyMapperElementType, SubelementType |
Construct key mapper
[ILNumerics Core Module] |
Name | Description | |
---|---|---|
NumberOfKeys |
Maximum number of keys (different subitems)
[ILNumerics Core Module] |
Name | Description | |
---|---|---|
GetSubelement |
Get subelement from element item
[ILNumerics Core Module] | |
Map(SubelementType) |
Maps subelement types to bucket index
[ILNumerics Core Module] | |
Map(ElementType, Int32, Int32) |
Map subelemt - provide fallback on error
[ILNumerics Core Module] | |
SubelementsCount |
Count subelements in an element
[ILNumerics Core Module] |
Examples of sortable classes: colors: number/type of subelements: 1/any (e.g. the color code). One should write a ILKeyMapper<Color,int>.strings: number/type of subelements: arbitrary/char. Here a sample ILASCIKeyMapper implementation exists already. This implementation is the default implementation used for bucket sort via ILMath.sort().trees: number/type of subelements: arbitrary/tree nodes. One should write a key mapper to map a node of a tree to a bucket number...
[ILNumerics Core Module]