DotNX::Core::SortedCollection< KeyType, ValueType > Class Template Reference

A collection of key/value pairs that guarantees ordered traversal. More...

Inheritance diagram for DotNX::Core::SortedCollection< KeyType, ValueType >:

DotNX::Core::ComparableCollection< KeyType, ValueType >

List of all members.

Public Member Functions

bool Equals (SortedCollection< KeyType, ValueType > other)
 Equality comparison.

Protected Member Functions

override void InsertItem (int index, ValueType item)
 Ensure that values are ordered by key.


Detailed Description

template<KeyType, ValueType>
class DotNX::Core::SortedCollection< KeyType, ValueType >

A collection of key/value pairs that guarantees ordered traversal.

Template Parameters:
KeyType The type of the keys.
ValueType The type of the values.
Type Constraints
ValueType :IEquatable<ValueType> 
KeyType :IComparable<KeyType> 

Member Function Documentation

template<KeyType , ValueType >
bool DotNX::Core::SortedCollection< KeyType, ValueType >::Equals ( SortedCollection< KeyType, ValueType >  other  ) 

Equality comparison.

Parameters:
other The collection to compare.
Returns:
true if the collections are equal, false otherwise.

template<KeyType , ValueType >
override void DotNX::Core::SortedCollection< KeyType, ValueType >::InsertItem ( int  index,
ValueType  item 
) [protected]

Ensure that values are ordered by key.

Is it truly necessary?

Parameters:
index Where the base class would perform the insertion.
item The value to be inserted.


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

SourceForge.net Logo
Generated on Sat Oct 18 14:13:25 2008 for .Nick's 0.1.0 by  doxygen 1.5.7.1