System::Collections::Generic::SortedDictionary class
Contents
[
Hide
]SortedDictionary class
Sorted dictionary type forward declaration.
template<typename TKey,typename TValue>class SortedDictionary : public System::Collections::Generic::BaseDictionary<std::map<TKey, TValue, ComparerAdapter<BasePointerType<TKey>::type>, ASPOSE_MAP_ALLOCATOR_TYPE(TKey, TValue)>>
| 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_Comparer() const | Gets the IComparer | 
| static GetDefaultKeyComparer() | Singleton accessor function. | 
| GetEnumerator() override | Gets enumerator to iterate through current dictionary. | 
| 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). | 
| 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. | 
| SortedDictionary() | Constructs empty dictionary. | 
| SortedDictionary(const SharedPtr<IComparer<typename BasePointerType<TKey>::type>>&) | Constructs empty dictionary. | 
| SortedDictionary(const SharedPtr<IDictionary<TKey, TValue>>&) | Copy constructor. | 
| SortedDictionary(const SharedPtr<IDictionary<TKey, TValue>>&, const SharedPtr<IComparer<typename BasePointerType<TKey>::type>>&) | Copy constructor. | 
Typedefs
| Typedef | Description | 
|---|---|
| const_iterator | Const iterator type. | 
| const_reverse_iterator | Const reverse iterator type. | 
| IEnumerablePtr | Collection of same elements. | 
| IEnumeratorPtr | Enumerator type. | 
| iterator | Iterator type. | 
| KeyCollection | Key collection type. | 
| KVPair | Key-value pair type. | 
| map_t | Underlying data type. | 
| Ptr | Pointer type. | 
| reverse_iterator | Reverse iterator type. | 
| this_t | Self type. | 
| ValueCollection | Value collection type. | 
Remarks
Sorted dictionary class wrapping STL map. 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.
See Also
- Class BaseDictionary
- Namespace System::Collections::Generic
- Library Aspose.PDF for C++