| IGLib 1.6.0 The IGLib base library for development of numerical, technical and business applications.

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Protected Member Functions | List of all members
IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase Class Reference

IComparer that compares the key first and then eventually the value and finally the additional ordering parameter, dependent on constructor parameters. More...

Inheritance diagram for IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase:
[legend]
Collaboration diagram for IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase:
[legend]

## Public Member Functions
| ComparerValueBase (bool twoStage, bool strict)
Public Member Functions inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase
int | Compare (KeyValueSortable< Tkey, Tvalue > keyValue1, KeyValueSortable< Tkey, Tvalue > keyValue2)
Public Member Functions inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >
| KeyValueSortable (Tkey key, Tvalue value, int orderParameter)
| KeyValueSortable (Tkey key, Tvalue value)

## Protected Member Functions
override IComparable | GetFirstStageCompared (KeyValueSortable< Tkey, Tvalue > keyValue)
| Extracts the object used in the first level of comparison from the argument. More...
override IComparable | GetSecondStageCompared (KeyValueSortable< Tkey, Tvalue > keyValue)
| Extracts the object used in the second level of comparison from the argument. More...
Protected Member Functions inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase
| ComparerBase (bool twoStage, bool strict)

## Additional Inherited Members
Static Public Attributes inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >
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...
Protected Attributes inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase
bool | _twoStage = false
bool | _strict = false
Protected Attributes inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >
Tkey | _key
Tvalue | _value
Static Protected Attributes inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >
static int | _counter = 0
Properties inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase
bool | TwoStage`[get]`
bool | Strict`[get]`
Properties inherited from IG.Lib.KeyValueSortable< Tkey, Tvalue >
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...

## Detailed Description

IComparer that compares the key first and then eventually the value and finally the additional ordering parameter, dependent on constructor parameters.

## Constructor & Destructor Documentation

IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase.ComparerValueBase | ( | bool | twoStage,
|  | bool | strict
| ) |  |
| inline

## Member Function Documentation

override IComparable IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase.GetFirstStageCompared | ( | KeyValueSortable< Tkey, Tvalue > | keyValue | ) |
| inline protected virtual

Extracts the object used in the first level of comparison from the argument.

Implements IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase.

References IG.Lib.KeyValueSortable< Tkey, Tvalue >.Value.

override IComparable IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerValueBase.GetSecondStageCompared | ( | KeyValueSortable< Tkey, Tvalue > | keyValue | ) |
| inline protected virtual

Extracts the object used in the second level of comparison from the argument.

Implements IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerBase.

References IG.Lib.KeyValueSortable< Tkey, Tvalue >.Key.

The documentation for this class was generated from the following file:

- igbase/utilities/Utils.cs