メインページ | ネームスペース一覧 | クラス階層 | 構成 | Directories | ファイル一覧 | ネームスペースメンバ | 構成メンバ | ファイルメンバ

クラス テンプレート RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >

オブジェクトリファレンスを保持するプレースホルダテンプレートクラス [詳細]

#include <CorbaConsumer.h>

RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >に対する継承グラフ

RTC::ConsumerBase すべてのメンバ一覧

Public メソッド

 Consumer ()
 コンストラクタ
virtual ~Consumer ()
 デストラクタ
virtual bool setObject (CORBA::Object_ptr obj)
 オブジェクトをセットする
ObjectTypePtr _ptr ()
virtual CORBA::Object_ptr getObject ()
 CORBAオブジェクトを取得する.

Protected 変数

ObjectTypeVar m_var
CORBA::Object_var m_objref

説明

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
class RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >

オブジェクトリファレンスを保持するプレースホルダテンプレートクラス

テンプレート引数で与えられた型のオブジェクトを保持する。 オブジェクトがセットされたときに、与えられた型で narrow されるので、 _ptr() で取得するリファレンスは、narrow 済みのリファレンスである。 内部的な使用のために、_ptr 型, _var型も同時にテンプレート引数として 与える必要がある。(下記注意事項参照)
注意: ObjectTypePtr = ObjectType::_ptr_type としているか、 _ptr_type は標準では規定されていない。 ただし、omniORB, TAO, MICO では、プロキシクラス内部で、 Type_ptr 型を _ptr_type に typedef しているので、 テンプレートの第2引数を指定しなくてもコンパイルは通る。

引数:
ObjectType このホルダが保持するオブジェクトの型
ObjectTypePtr このホルダが保持する _ptr 型
ObjectTypeVar このホルダが保持する _var 型


コンストラクタとデストラクタ

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::Consumer  )  [inline]
 

コンストラクタ

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
virtual RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::~Consumer  )  [inline, virtual]
 

デストラクタ


関数

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
ObjectTypePtr RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::_ptr  )  [inline]
 

virtual CORBA::Object_ptr RTC::ConsumerBase::getObject  )  [inline, virtual, inherited]
 

CORBAオブジェクトを取得する.

与えられたオブジェクトリファレンスは、ConsumerBase オブジェクト内に CORBA::Object_var 型として保持される。

引数:
obj CORBA オブジェクトのリファレンス

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
virtual bool RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::setObject CORBA::Object_ptr  obj  )  [inline, virtual]
 

オブジェクトをセットする

ConsumerBase のオーバーライド。CORBA::Object_var にオブジェクトをセット するとともに、templateパラメータの型で narrow したオブジェクトを メンバ変数に保持する。

引数:
obj CORBA Objecct

RTC::ConsumerBaseを再定義しています。


変数

CORBA::Object_var RTC::ConsumerBase::m_objref [protected, inherited]
 

template<class ObjectType, class ObjectTypePtr = class ObjectType::_ptr_type, class ObjectTypeVar = class ObjectType::_var_type>
ObjectTypeVar RTC::Consumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::m_var [protected]
 


このクラスの説明は次のファイルから生成されました:
OpenRTMに対してTue Nov 21 17:34:54 2006に生成されました。  doxygen 1.4.1