クラス toppers::itron::static_api静的APIのパラメータ列を格納するためのクラス
[詳細]
#include "toppers/itron/static_api.hpp"
toppers::itron::static_apiのコラボレーション図
[凡例]すべてのメンバ一覧
説明
静的APIのパラメータ列を格納するためのクラス
このクラスはコンフィギュレーションファイルに現れる静的APIのパラメータを格納します。 実際に格納されるパラメータ列は、API名と各パラメータの他、パケットを判別するための '{'および'}'です。
例えば、CRE_SEM(SEMID1, { TA_TFIFO, 0, 1 });であれば、
"CRE_SEM", "SEMID1", "{", "TA_TFIFO", "0", "1", "}"
というパラメータ列が格納されます。
static_api.hpp の 70 行で定義されています。
関数
template<typename Iterator> |
void toppers::itron::static_api::assign |
( |
Iterator |
first, |
|
|
Iterator |
last |
|
) |
[inline] |
|
|
パラメータ列の格納
- 引数:
-
| first | パラメータ列の先頭位置 |
| last | パラメータ列の終端位置+1 |
static_api.hpp の 112 行で定義されています。
参照元 parse(). 00113 {
00114 tokens_.assign( first, last );
00115 }
|
bool toppers::itron::static_api::empty |
( |
|
) |
const [inline] |
|
|
パラメータ列が空であるかどうかの判定
- 戻り値:
- パラメータ列が空であれば true を返す
static_api.hpp の 104 行で定義されています。 00104 { return tokens_.empty(); }
|
void toppers::itron::static_api::line |
( |
const line_type & |
value |
) |
[inline] |
|
const line_type& toppers::itron::static_api::line |
( |
|
) |
const [inline] |
|
|
指定位置のパラメータの参照
- 引数:
-
- 戻り値:
- index で指定されたパラメータの参照を返す
static_api.hpp の 94 行で定義されています。 00094 { return tokens_[index]; }
|
size_type toppers::itron::static_api::size |
( |
|
) |
const [inline] |
|
|
パラメータ列の要素数の取得
- 戻り値:
- パラメータ列の要素数を返す
static_api.hpp の 99 行で定義されています。 00099 { return tokens_.size(); }
|
void toppers::itron::static_api::swap |
( |
static_api & |
other |
) |
throw () |
|
|
オブジェクトの交換
- 引数:
-
static_api.cpp の 52 行で定義されています。 00053 {
00054 line_type t( line_ );
00055 line_ = other.line_;
00056 other.line_ = t;
00057
00058 tokens_.swap( other.tokens_ );
00059 }
|
このクラスの説明は次のファイルから生成されました:
Copyright © 2006 by TAKAGI Nobuhisa.
このページは Wed Apr 12 16:32:06 2006 に Doxygen によって生成されました。
|
|