IGLib  1.5
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase 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 >.ComparerKeyBase:
+ Collaboration diagram for IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase:

Public Member Functions

 ComparerKeyBase (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 >.ComparerKeyBase.ComparerKeyBase ( bool  twoStage,
bool  strict 
)
inline

Member Function Documentation

override IComparable IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase.GetFirstStageCompared ( KeyValueSortable< Tkey, Tvalue >  keyValue)
inlineprotectedvirtual

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 >.Key.

override IComparable IG.Lib.KeyValueSortable< Tkey, Tvalue >.ComparerKeyBase.GetSecondStageCompared ( KeyValueSortable< Tkey, Tvalue >  keyValue)
inlineprotectedvirtual

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 >.Value.


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