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_iteratorconst イテレータ型。
const_reverse_iteratorconst 逆イテレータ型。
IEnumerablePtr同一要素のコレクションです。
IEnumeratorPtrEnumerator 型。
iteratorイテレータ型。
KeyCollectionキーコレクションの型です。
KVPairキーと値のペアの型です。
map_t基礎となるデータ型。
Ptrポインタ型。
reverse_iterator逆イテレータ型。
this_t自身の型です。
ValueCollection値コレクションの型です。

備考

STL の map をラップしたソート済み辞書クラス。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してインスタンスを作成しないでください。そうしないとランタイムエラーやアサーション障害が発生します。常にこのクラスを System::SmartPtr ポインタでラップし、そのポインタを関数の引数として渡すようにしてください。

参照