fielddef のコレクションクラス [詳解]
#include <field.h>
公開メンバ関数 | |
void | addAliasName (int index, const _TCHAR *name) |
void | addAllFields (const tabledef *def) |
void | addSelectedFields (const class table *tb) |
void | append (const fielddefs *fds) |
bool | checkIndex (int index) const |
void | clear () |
fielddefs * | clone () const |
int | indexByName (const std::_tstring &name) const |
const fielddef & | operator[] (int index) const |
const fielddef & | operator[] (const _TCHAR *name) const |
const fielddef & | operator[] (const std::_tstring &name) const |
void | release () |
size_t | size () const |
静的公開メンバ関数 | |
static fielddefs * | create () |
fielddef のコレクションクラス
fielddef (フィールド定義)オブジェクトのコレクションを管理します。
void addAliasName | ( | int | index, |
const _TCHAR * | name | ||
) |
フィールド名のエリアス(別名)を指定します。エリアスを指定した場合、以降のアクセスはすべて エリアス名で行ってください。
index | フィールド番号 |
name | 別名 |
void addAllFields | ( | const tabledef * | def | ) |
defで指定されたテーブルのすべてのフィールドの定義を追加します。
void addSelectedFields | ( | const class table * | tb | ) |
tbで指定されたテーブルの、フィルター条件で選択されたフィールドの定義を追加します。
void append | ( | const fielddefs * | fds | ) |
fdsで指定された複数のフィールドを現在のフィールドリストの末尾に追加します。
bool checkIndex | ( | int | index | ) | const |
指定されたインデックスが、コレクションの範囲にあるかどうかを返します。
void clear | ( | ) |
すべてのフィールドを削除します。
fielddefs * clone | ( | ) | const |
このオブジェクトのクローンを返します。クローンは深いコピーです。
|
static |
fielddefs オブジェクトを生成し返します。
int indexByName | ( | const std::_tstring & | name | ) | const |
指定されたフィールド名からインデックス番号を返します。 見つからない場合は-1を返します。
const fielddef & operator[] | ( | int | index | ) | const |
指定したインデックス番号の fielddef への参照を返します。
const fielddef & operator[] | ( | const _TCHAR * | name | ) | const |
指定した名前の fielddef への参照を返します。
const fielddef & operator[] | ( | const std::_tstring & | name | ) | const |
指定した名前の fielddef への参照を返します。
void release | ( | ) |
このオブジェクトを破棄します。
size_t size | ( | ) | const |
コレクションの数を返します。