|
TNB Library
|
簡易配列型情報管理テンプレート [詳解]
#include <TnbSimpleVector.h>
CSimpleVectorT< TYP > の継承関係図公開メンバ関数 | |
| INDEX | Add (const TYP &t) |
| [追加] 要素一つ追加. [詳解] | |
| TYP & | At (INDEX index) |
| [取得] 要素の参照取得. [詳解] | |
| const TYP & | At (INDEX index) const |
| [取得] 要素の参照取得. [詳解] | |
| CSimpleVectorT (const CSimpleVectorT &other) | |
| コピーコンストラクタ [詳解] | |
| CSimpleVectorT (size_t bufferSize) | |
| コンストラクタ [詳解] | |
| CSimpleVectorT (void) | |
| コンストラクタ [詳解] | |
| INDEX | Find (const TYP &t) const |
| [検索] 検索. [詳解] | |
| size_t | GetSize (void) const |
| [取得] サイズ取得 [詳解] | |
| bool | IsEmpty (void) const |
| [確認] 要素の有無確認. [詳解] | |
| bool | IsInRange (INDEX index) const |
| [確認] INDEXの有効確認. [詳解] | |
| operator size_t (void) const | |
| [取得] サイズ取得 [詳解] | |
| CSimpleVectorT & | operator= (const CSimpleVectorT &other) |
| [複製] コピーオペレータ [詳解] | |
| TYP & | operator[] (INDEX index) |
| [取得] 要素の参照取得. [詳解] | |
| const TYP & | operator[] (INDEX index) const |
| [取得] 要素の参照取得. [詳解] | |
| TYP * | ReferBuffer (void) |
| [取得] バッファ取得 [詳解] | |
| const TYP * | ReferBuffer (void) const |
| [取得] バッファ取得 [詳解] | |
| bool | Remove (INDEX index) |
| [削除] 要素一つ削除. [詳解] | |
| void | RemoveAll (void) |
| [削除] 空化 [詳解] | |
| bool | Set (INDEX index, const TYP &t) |
| [設定] 要素の設定. [詳解] | |
| void | SetSize (size_t s) |
| [設定] サイズ設定 [詳解] | |
| virtual | ~CSimpleVectorT (void) |
| デストラクタ [詳解] | |
簡易配列型情報管理テンプレート
型の配列(連続したメモリ配置)を管理します。 メモリを連続して配置しているため、他のAPIに配列として渡すのが容易です。 動的に配列を増やすことができます(メモリの再配置が発生する可能性があります)。
| TYP | 保持する型(コピー可能の型に限る) |
TnbSimpleVector.h の 55 行目に定義があります。
|
explicit |
コンストラクタ
TnbSimpleVector.h の 59 行目に定義があります。
|
explicit |
| CSimpleVectorT | ( | const CSimpleVectorT< TYP > & | other | ) |
|
virtual |
デストラクタ
TnbSimpleVector.h の 80 行目に定義があります。
| INDEX Add | ( | const TYP & | t | ) |
[追加] 要素一つ追加.
自インスタンスで管理しているバッファに指定の一データを連結します。
| t | 要素。 |
| INVALID_INDEX | 失敗。 |
| 上記以外 | 追加したINDEX。 |
TnbSimpleVector.h の 258 行目に定義があります。
| TYP & At | ( | INDEX | index | ) |
[取得] 要素の参照取得.
| index | インデックス |
| CIndexOutOfBoundsException | インデックスが範囲外であることを示すためにスローされます。 |
TnbSimpleVector.h の 119 行目に定義があります。
| const TYP & At | ( | INDEX | index | ) | const |
[取得] 要素の参照取得.
| index | インデックス |
| CIndexOutOfBoundsException | インデックスが範囲外であることを示すためにスローされます。 |
TnbSimpleVector.h の 107 行目に定義があります。
| INDEX Find | ( | const TYP & | t | ) | const |
| size_t GetSize | ( | void | ) | const |
| bool IsEmpty | ( | void | ) | const |
[確認] 要素の有無確認.
| true | 要素なし |
| false | 要素有り |
TnbSimpleVector.h の 180 行目に定義があります。
| bool IsInRange | ( | INDEX | index | ) | const |
[確認] INDEXの有効確認.
| index | インデックス |
| true | 指定Indexは有効。 |
| false | 指定Indexは無効(範囲外)。 |
TnbSimpleVector.h の 169 行目に定義があります。
| operator size_t | ( | void | ) | const |
| CSimpleVectorT & operator= | ( | const CSimpleVectorT< TYP > & | other | ) |
| TYP & operator[] | ( | INDEX | index | ) |
[取得] 要素の参照取得.
| index | インデックス |
| CIndexOutOfBoundsException | インデックスが範囲外であることを示すためにスローされます。 |
TnbSimpleVector.h の 143 行目に定義があります。
| const TYP & operator[] | ( | INDEX | index | ) | const |
[取得] 要素の参照取得.
| index | インデックス |
| CIndexOutOfBoundsException | インデックスが範囲外であることを示すためにスローされます。 |
TnbSimpleVector.h の 131 行目に定義があります。
| TYP * ReferBuffer | ( | void | ) |
| const TYP * ReferBuffer | ( | void | ) | const |
| bool Remove | ( | INDEX | index | ) |
| void RemoveAll | ( | void | ) |
| bool Set | ( | INDEX | index, |
| const TYP & | t | ||
| ) |
| void SetSize | ( | size_t | s | ) |