クラス テンプレート RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >
オブジェクトリファレンスを保持するプレースホルダテンプレートクラス
[詳細]
#include <CorbaConsumer.h>
RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >に対する継承グラフ
すべてのメンバ一覧
説明
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type>
class RTC::CorbaConsumer< 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, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::CorbaConsumer |
( |
|
) |
[inline] |
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::CorbaConsumer |
( |
const CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar > & |
x |
) |
[inline] |
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
virtual RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::~CorbaConsumer |
( |
|
) |
[inline, virtual] |
|
関数
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
ObjectTypePtr RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::_ptr |
( |
|
) |
[inline] |
|
|
ObjectType 型のオブジェクトのリファレンスを取得.
ObjectType に narrow済みのオブジェクトのリファレンスを取得する。 オブジェクトリファレンスを使用するには、setObject() でセット済みで なければならない。 オブジェクトがセットされていなければ nil オブジェクトリファレンスが、 返される。
- 戻り値:
- ObjectType に narrow 済みのオブジェクトのリファレンス
|
virtual CORBA::Object_ptr RTC::CorbaConsumerBase::getObject |
( |
|
) |
[inline, virtual, inherited] |
|
|
CORBAオブジェクトを取得する.
与えられたオブジェクトリファレンスは、ConsumerBase オブジェクト内に CORBA::Object_var 型として保持される。
- 引数:
-
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
ObjectTypePtr RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::operator-> |
( |
|
) |
[inline] |
|
|
ObjectType 型のオブジェクトのリファレンスを取得.
ObjectType に narrow済みのオブジェクトのリファレンスを取得する。 オブジェクトリファレンスを使用するには、setObject() でセット済みで なければならない。 オブジェクトがセットされていなければ nil オブジェクトリファレンスが、 返される。
- 戻り値:
- ObjectType に narrow 済みのオブジェクトのリファレンス
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
CorbaConsumer& RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::operator= |
( |
const CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar > & |
x |
) |
[inline] |
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
virtual void RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::releaseObject |
( |
|
) |
[inline, virtual] |
|
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
virtual bool RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::setObject |
( |
CORBA::Object_ptr |
obj |
) |
[inline, virtual] |
|
|
オブジェクトをセットする
ConsumerBase のオーバーライド。CORBA::Object_var にオブジェクトをセット するとともに、templateパラメータの型で narrow したオブジェクトを メンバ変数に保持する。
- 引数:
-
RTC::CorbaConsumerBaseを再定義しています。 |
変数
template<class ObjectType, typename ObjectTypePtr = typename ObjectType::_ptr_type, typename ObjectTypeVar = typename ObjectType::_var_type> |
ObjectTypeVar RTC::CorbaConsumer< ObjectType, ObjectTypePtr, ObjectTypeVar >::m_var [protected] |
|
このクラスの説明は次のファイルから生成されました:
OpenRTMに対してFri Oct 5 05:14:59 2007に生成されました。
1.4.1