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

메서드

메서드설명
crbegin() const컬렉션의 마지막 const 한정 요소에 대한 역방향 반복자를 가져옵니다 (역순에서 첫 번째).
crend() const컬렉션 시작 전에 존재하지 않는 const 한정 요소에 대한 역방향 반복자를 가져옵니다.
get_Comparer() constSortedDictionary<TKey,TValue>의 요소를 정렬하는 데 사용되는 IComparer를 가져옵니다.
static GetDefaultKeyComparer()싱글톤 액세서 함수.
GetEnumerator() override현재 사전을 순회하기 위한 열거자를 가져옵니다.
rbegin()컬렉션의 마지막 요소에 대한 역방향 반복자를 가져옵니다 (역방향에서 첫 번째).
rbegin() constconst 한정 컬렉션의 마지막 요소에 대한 역방향 반복자를 가져옵니다 (역방향에서 첫 번째).
rend()컬렉션 시작 앞에 존재하지 않는 요소에 대한 역방향 반복자를 가져옵니다.
rend() constconst 한정 컬렉션 시작 앞에 존재하지 않는 요소에 대한 역방향 반복자를 가져옵니다.
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동일한 요소들의 컬렉션입니다.
IEnumeratorPtrEnumerator 유형.
iterator반복자 타입.
KeyCollection키 컬렉션 타입.
KVPair키-값 쌍 타입.
map_t기본 데이터 유형.
Ptr포인터 유형.
reverse_iterator역방향 반복자 타입.
this_t자기 타입.
ValueCollection값 컬렉션 타입.

비고

STL map을 래핑한 정렬된 사전 클래스입니다. 이 클래스의 객체는 System::MakeObject() 함수를 사용하여 할당해야 합니다. 스택에 인스턴스를 생성하거나 operator new를 사용하지 마십시오. 그렇지 않으면 런타임 오류 또는 어설션 오류가 발생합니다. 항상 이 클래스를 System::SmartPtr 포인터로 감싸고, 해당 포인터를 사용하여 함수 인자로 전달하십시오.

또 보기