System::Collections::Generic::SortedDictionary 클래스
내용물
[
숨다
]SortedDictionary class
정렬된 사전 타입 전방 선언입니다.
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)>>
| 매개변수 | 설명 |
|---|---|
| TKey | 키 유형. |
| TValue | 값 형식. |
Nested classes
- Class Enumerator
메서드
| 메서드 | 설명 |
|---|---|
| crbegin() const | 컬렉션의 마지막 const 한정 요소에 대한 역방향 반복자를 가져옵니다 (역순에서 첫 번째). |
| crend() const | 컬렉션 시작 전에 존재하지 않는 const 한정 요소에 대한 역방향 반복자를 가져옵니다. |
| get_Comparer() const | SortedDictionary<TKey,TValue>의 요소를 정렬하는 데 사용되는 IComparer |
| static GetDefaultKeyComparer() | 싱글톤 액세서 함수. |
| GetEnumerator() override | 현재 사전을 순회하기 위한 열거자를 가져옵니다. |
| rbegin() | 컬렉션의 마지막 요소에 대한 역방향 반복자를 가져옵니다 (역방향에서 첫 번째). |
| rbegin() const | const 한정 컬렉션의 마지막 요소에 대한 역방향 반복자를 가져옵니다 (역방향에서 첫 번째). |
| rend() | 컬렉션 시작 앞에 존재하지 않는 요소에 대한 역방향 반복자를 가져옵니다. |
| rend() const | const 한정 컬렉션 시작 앞에 존재하지 않는 요소에 대한 역방향 반복자를 가져옵니다. |
| SortedDictionary() | 빈 사전을 생성합니다. |
| SortedDictionary(const SharedPtr<IComparer<typename BasePointerType<TKey>::type>>&) | 빈 사전을 생성합니다. |
| SortedDictionary(const SharedPtr<IDictionary<TKey, TValue>>&) | 복사 생성자. |
| SortedDictionary(const SharedPtr<IDictionary<TKey, TValue>>&, const SharedPtr<IComparer<typename BasePointerType<TKey>::type>>&) | 복사 생성자. |
Typedefs
| 타입 정의 | 설명 |
|---|---|
| const_iterator | 상수 반복자 타입. |
| const_reverse_iterator | 상수 역방향 반복자 타입. |
| IEnumerablePtr | 동일한 요소들의 컬렉션입니다. |
| IEnumeratorPtr | Enumerator 유형. |
| iterator | 반복자 타입. |
| KeyCollection | 키 컬렉션 타입. |
| KVPair | 키-값 쌍 타입. |
| map_t | 기본 데이터 유형. |
| Ptr | 포인터 유형. |
| reverse_iterator | 역방향 반복자 타입. |
| this_t | 자기 타입. |
| ValueCollection | 값 컬렉션 타입. |
비고
STL map을 래핑한 정렬된 사전 클래스입니다. 이 클래스의 객체는 System::MakeObject() 함수를 사용하여 할당해야 합니다. 스택에 인스턴스를 생성하거나 operator new를 사용하지 마십시오. 그렇지 않으면 런타임 오류 또는 어설션 오류가 발생합니다. 항상 이 클래스를 System::SmartPtr 포인터로 감싸고, 해당 포인터를 사용하여 함수 인자로 전달하십시오.
또 보기
- Class BaseDictionary
- Namespace System::Collections::Generic
- Library Aspose.Page for C++