クラス toppers::itron::static_api

静的APIのパラメータ列を格納するためのクラス [詳細]

#include "toppers/itron/static_api.hpp"

toppers::itron::static_apiのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

Public 型

typedef std::vector< std::string
>::value_type 
value_type
typedef std::vector< std::string
>::const_iterator 
const_iterator
typedef std::vector< std::string
>::const_reference 
const_reference
typedef std::vector< std::string
>::size_type 
size_type
typedef text_line line_type

Public メソッド

const_iterator begin () const
 パラメータ列の先頭位置の取得
const_iterator end () const
 パラメータ列の終端位置+1の取得
const_reference operator[] (size_type index) const
 指定位置のパラメータの参照
size_type size () const
 パラメータ列の要素数の取得
bool empty () const
 パラメータ列が空であるかどうかの判定
template<typename Iterator>
void assign (Iterator first, Iterator last)
 パラメータ列の格納
const line_typeline () const
 静的APIの先頭位置が現れた行番号情報の取得
void line (const line_type &value)
 静的APIの先頭位置が現れた行番号情報の設定
void swap (static_api &other) throw ()
 オブジェクトの交換
bool parse (text::const_iterator &next, text::const_iterator last, bool ucn=false, codeset_t codeset=ascii)

説明

静的APIのパラメータ列を格納するためのクラス

このクラスはコンフィギュレーションファイルに現れる静的APIのパラメータを格納します。 実際に格納されるパラメータ列は、API名と各パラメータの他、パケットを判別するための '{'および'}'です。
例えば、CRE_SEM(SEMID1, { TA_TFIFO, 0, 1 });であれば、
"CRE_SEM", "SEMID1", "{", "TA_TFIFO", "0", "1", "}"
というパラメータ列が格納されます。

static_api.hpp70 行で定義されています。


関数

template<typename Iterator>
void toppers::itron::static_api::assign Iterator  first,
Iterator  last
[inline]
 

パラメータ列の格納

引数:
first パラメータ列の先頭位置
last パラメータ列の終端位置+1

static_api.hpp112 行で定義されています。

参照元 parse().

00113       {
00114         tokens_.assign( first, last );
00115       }

const_iterator toppers::itron::static_api::begin  )  const [inline]
 

パラメータ列の先頭位置の取得

戻り値:
パラメータ列の先頭位置を返す

static_api.hpp83 行で定義されています。

参照元 toppers::itron::kernel_object::analyze_parameters()toppers::itron::specified_object< Policy >::analyze_primary()toppers::itron::specified_object< Policy >::analyze_secondary()toppers::itron::specified_object< Policy >::build().

00083 { return tokens_.begin(); }

bool toppers::itron::static_api::empty  )  const [inline]
 

パラメータ列が空であるかどうかの判定

戻り値:
パラメータ列が空であれば true を返す

static_api.hpp104 行で定義されています。

00104 { return tokens_.empty(); }

const_iterator toppers::itron::static_api::end  )  const [inline]
 

パラメータ列の終端位置+1の取得

戻り値:
パラメータ列の終端位置を返す

static_api.hpp88 行で定義されています。

参照元 toppers::itron::kernel_object::analyze_parameters().

00088 { return tokens_.end(); }

void toppers::itron::static_api::line const line_type value  )  [inline]
 

静的APIの先頭位置が現れた行番号情報の設定

引数:
value 設定する行番号情報

static_api.hpp126 行で定義されています。

00126 { line_ = value; }

const line_type& toppers::itron::static_api::line  )  const [inline]
 

静的APIの先頭位置が現れた行番号情報の取得

戻り値:
行番号情報を返す

static_api.hpp121 行で定義されています。

参照元 toppers::itron::kernel_object::analyze_parameters()parse()toppers::itron::include_policy::verify().

00121 { return line_; }

const_reference toppers::itron::static_api::operator[] size_type  index  )  const [inline]
 

指定位置のパラメータの参照

引数:
index 位置を指定するためのインデックス
戻り値:
index で指定されたパラメータの参照を返す

static_api.hpp94 行で定義されています。

00094 { return tokens_[index]; }

size_type toppers::itron::static_api::size  )  const [inline]
 

パラメータ列の要素数の取得

戻り値:
パラメータ列の要素数を返す

static_api.hpp99 行で定義されています。

00099 { return tokens_.size(); }

void toppers::itron::static_api::swap static_api other  )  throw ()
 

オブジェクトの交換

引数:
other 交換対象のオブジェクト

static_api.cpp52 行で定義されています。

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 によって生成されました。