クラス toppers::kernel_id::id_number

オブジェクトID番号ブロックの基底クラス [詳細]

#include "toppers/kernel_id.hpp"

toppers::kernel_id::id_numberのコラボレーション図

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

Public メソッド

 id_number ()
 デフォルトコンストラクタ
virtual ~id_number ()
 デストラクタ
const std::string & name () const
 オブジェクト名の参照
long value () const
 ID番号の参照
void set (const std::string &name, long id)
 オブジェクト名とID番号の設定

Static Public メソッド

static bool less_than (const boost::shared_ptr< id_number > lhs, const boost::shared_ptr< id_number > rhs)
 スマートポインタを介したID番号の比較

説明

オブジェクトID番号ブロックの基底クラス

kernel_id.hpp97 行で定義されています。


関数

bool toppers::kernel_id::id_number::less_than const boost::shared_ptr< id_number lhs,
const boost::shared_ptr< id_number rhs
[static]
 

スマートポインタを介したID番号の比較

引数:
lhs 左辺
rhs 右辺
戻り値:
true lhs < rhs
false lhs >= rhs
この関数は、stdsortやstdmapの比較関数として使用するためのものです。

kernel_id.cpp174 行で定義されています。

00175   {
00176     return lhs->id_ < rhs->id_;
00177   }

const std::string & toppers::kernel_id::id_number::name  )  const
 

オブジェクト名の参照

戻り値:
オブジェクト名を返す

kernel_id.cpp139 行で定義されています。

00140   {
00141     return name_;
00142   }

void toppers::kernel_id::id_number::set const std::string &  name,
long  id
 

オブジェクト名とID番号の設定

引数:
name オブジェクト名
id ID番号

kernel_id.cpp159 行で定義されています。

00160   {
00161     name_ = name;
00162     id_ = id;
00163   }

long toppers::kernel_id::id_number::value  )  const
 

ID番号の参照

戻り値:
-1L ID番号が設定されていない
0以上 ID番号の値を返す

kernel_id.cpp149 行で定義されています。

00150   {
00151     return id_;
00152   }


このクラスの説明は次のファイルから生成されました:
Copyright © 2006 by TAKAGI Nobuhisa.
このページは Wed Apr 12 16:32:03 2006 に Doxygen によって生成されました。