System::Collections::Generic::SortedList class
Contents
[
Hide
]SortedList class
Sorted list wrapping FlatMap structure. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
template<typename TKey,typename TValue>class SortedList : public System::Collections::Generic::SortedListHelper<TKey, TValue>,
public System::Collections::Generic::BaseDictionary<Detail::FlatMap<TKey, TValue, ComparerAdapter<TKey>>>
| Parameter | Description |
|---|---|
| TKey | Key type. |
| TValue | Value type. |
Nested classes
- Class Enumerator
Methods
| Method | Description |
|---|---|
| crbegin() const | Gets a reverse iterator to the last const-qualified element of collection (first in reverse). |
| crend() const | Gets a reverse iterator for a non-existent const-qualified element before the start of the collection. |
| get_Capacity() const | Gets current list capacity. |
| get_Keys() const | |
| get_Values() const | |
| GetEnumerator() override | Gets enumerator iterating through current list. |
| IndexOfKey(TKey) const | Looks for specific key. |
| IndexOfValue(TValue) const | Looks for specific value. |
| rbegin() | Gets a reverse iterator to the last element of collection (first in reverse). |
| rbegin() const | Gets a reverse iterator to the last element of the const-qualified collection (first in reverse). |
| RemoveAt(int) | Removes item at specified position. |
| rend() | Gets a reverse iterator for a non-existent element before the start of the collection. |
| rend() const | Gets a reverse iterator for a non-existent element before the start of the const-qualified collection. |
| set_Capacity(int) | Sets current list capacity. |
| SortedList() | Constructs empty list. |
| SortedList(const SharedPtr<IComparer<TKey>>&) | Constructs empty list. |
| SortedList(const SharedPtr<IDictionary<TKey, TValue>>&) | Copy constructor. |
| SortedList(const map_t&) | Copy constructor. |
| SortedList(int) | Constructs empty list. |
Typedefs
| Typedef | Description |
|---|---|
| KeyCollection | Key collection type. |
| ValueCollection | Value collection type. |
| map_t | Underlying data type. |
| this_t | This type. |
| Ptr | Pointer type. |
| KVPair | Key value pair type. |
| IEnumerablePtr | Collection of same pairs type. |
| IEnumeratorPtr | Enumerator type. |
| iterator | Iterator type. |
| const_iterator | Const iterator type. |
| reverse_iterator | Reverse iterator type. |
| const_reverse_iterator | Const reverse iterator type. |
See Also
- Class SortedListHelper
- Class BaseDictionary
- Namespace System::Collections::Generic
- Library Aspose.PUB for C++