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 イテレータ型。 |
| const_reverse_iterator | const 逆イテレータ型。 |
| 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++