IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Base class for different IComparer classes. More...
Public Member Functions | |
int | Compare (KeyValueSortable< Tkey, Tvalue > keyValue1, KeyValueSortable< Tkey, Tvalue > keyValue2) |
![]() | |
KeyValueSortable (Tkey key, Tvalue value, int orderParameter) | |
KeyValueSortable (Tkey key, Tvalue value) | |
Protected Member Functions | |
ComparerBase (bool twoStage, bool strict) | |
abstract IComparable | GetFirstStageCompared (KeyValueSortable< Tkey, Tvalue > keyValue) |
Extracts the object used in the first level of comparison from the argument. More... | |
abstract IComparable | GetSecondStageCompared (KeyValueSortable< Tkey, Tvalue > keyValue) |
Extracts the object used in the second level of comparison from the argument. More... | |
Protected Attributes | |
bool | _twoStage = false |
bool | _strict = false |
![]() | |
Tkey | _key |
Tvalue | _value |
Properties | |
bool | TwoStage [get] |
bool | Strict [get] |
![]() | |
Tkey | Key [get] |
Returns the key. More... | |
Tvalue | Value [get] |
Returns the value. More... | |
int | OrderParameter [get] |
Order prameter that enable additional sorting when other fields are equal. More... | |
Additional Inherited Members | |
![]() | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareKey |
Comparison of keys. More... | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareKeyValue |
Comparison of keys and then values (if keys are equal). More... | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareKeyValueStrict |
Comparison of keys and then values (if keys are equal) and finally the (possibly unique) ordering parameter that enables strict ordering of objects with the same key and value. More... | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareValue |
Comparison of values. More... | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareValueKey |
Comparison of values and then keys (if values are equal). More... | |
static IComparer < KeyValueSortable< Tkey, Tvalue > > | CompareValueKeyStrict |
Comparison of values and then keys (if keys are equal) and finally the (possibly unique) ordering parameter that enables strict ordering of objects with the same value and key. More... | |
![]() | |
static int | _counter = 0 |
Base class for different IComparer classes.
|
inlineprotected |
|
protectedpure virtual |
Extracts the object used in the first level of comparison from the argument.
Implemented in IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase, and IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase.
|
protectedpure virtual |
Extracts the object used in the second level of comparison from the argument.
Implemented in IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase, and IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase.
|
inline |
|
protected |
|
protected |
|
get |
|
get |