クラス toppers::kernel_cfg::initial_blockカーネルオブジェクトの初期化ブロッククラス
[詳細]
#include "toppers/kernel_cfg.hpp"
toppers::kernel_cfg::initial_blockのコラボレーション図
[凡例]すべてのメンバ一覧
|
Public メソッド |
| initial_block () |
| デフォルトコンストラクタ
|
virtual | ~initial_block () |
| デストラクタ
|
const std::string & | get (const std::string &key) const |
| 初期化ブロックのフィールド取得
|
void | set (const std::string &key, const std::string &field) |
| フィールドの値を格納
|
long | id () const |
| オブジェクトのID番号の参照
|
void | id (long value) |
| オブジェクトのID番号の設定
|
Static Public メソッド |
static bool | less_than (const boost::shared_ptr< initial_block > lhs, const boost::shared_ptr< initial_block > rhs) |
| スマートポインタを介した初期化ブロックの比較
|
static const std::string & | get_field (const boost::shared_ptr< initial_block > &inib_ptr, const std::string &key) |
| フィールドの値の参照
|
説明
カーネルオブジェクトの初期化ブロッククラス
- 参照:
- kernel_cfg::initial_block, kernel_id
kernel_cfg.hpp の 74 行で定義されています。
関数
const std::string & toppers::kernel_cfg::initial_block::get |
( |
const std::string & |
key |
) |
const |
|
|
初期化ブロックのフィールド取得
- 引数:
-
- 戻り値:
- フィールド値(文字列)
kernel_cfg.cpp の 78 行で定義されています。 00079 {
00080 std::map<std::string, std::string>::const_iterator iter( field_map_.find( key ) );
00081 if ( iter == field_map_.end() )
00082 {
00083 static const std::string dummy;
00084 return dummy;
00085 }
00086 return iter->second;
00087 }
|
const std::string & toppers::kernel_cfg::initial_block::get_field |
( |
const boost::shared_ptr< initial_block > & |
inib_ptr, |
|
|
const std::string & |
key |
|
) |
[static] |
|
|
フィールドの値の参照
- 引数:
-
| inib_ptr | 初期化ブロックへのスマートポインタ |
| key | フィールドを特定するためのキー |
- 戻り値:
- フィールドの値(文字列)を返す
kernel_cfg.cpp の 121 行で定義されています。 00122 {
00123 return inib_ptr->get( key );
00124 }
|
void toppers::kernel_cfg::initial_block::id |
( |
long |
value |
) |
|
|
|
オブジェクトのID番号の設定
- 引数:
-
kernel_cfg.cpp の 68 行で定義されています。 00069 {
00070 id_ = value;
00071 }
|
long toppers::kernel_cfg::initial_block::id |
( |
|
) |
const |
|
|
オブジェクトのID番号の参照
- 戻り値:
- ID番号を返す
kernel_cfg.cpp の 59 行で定義されています。 00060 {
00061 return id_;
00062 }
|
bool toppers::kernel_cfg::initial_block::less_than |
( |
const boost::shared_ptr< initial_block > |
lhs, |
|
|
const boost::shared_ptr< initial_block > |
rhs |
|
) |
[static] |
|
|
スマートポインタを介した初期化ブロックの比較
- 引数:
-
- 戻り値:
-
| true | lhs < rhs |
| false | lhs >= rhs |
この関数は、stdsortやstdmapの比較関数として使用するためのものです。 比較はID番号の単純に比較しています。
kernel_cfg.cpp の 110 行で定義されています。 00111 {
00112 return lhs->id() < rhs->id();
00113 }
|
void toppers::kernel_cfg::initial_block::set |
( |
const std::string & |
key, |
|
|
const std::string & |
field |
|
) |
|
|
|
フィールドの値を格納
- 引数:
-
| key | フィールドを指定するキー文字列 |
| field | 格納する値(文字列) |
kernel_cfg.cpp の 94 行で定義されています。 00095 {
00096 std::string t( field );
00097 field_map_[key].swap( t );
00098 }
|
このクラスの説明は次のファイルから生成されました:
Copyright © 2006 by TAKAGI Nobuhisa.
このページは Wed Apr 12 16:32:03 2006 に Doxygen によって生成されました。
|
|