CrossFramework Library

クラス テンプレート XBase::ScopedPtr< T >

#include <XBase/ScopedPtr.hpp>


template<typename T>
class XBase::ScopedPtr< T >

boost::scoped_ptrと同じオートポインタクラス。

すべてのメンバ一覧

 ScopedPtr (T *aPtr=0)
 コンストラクタ
取得
bool isNull () const
 ポインタが設定されていなければtrueを返す。
bool isValid () const
 ポインタが設定されていればtrueを返す。
T & ref () const
 ポインタの参照を取得する。
T * get () const
 ポインタの値をそのまま取得する。
変更
void reset ()
 ポインタを設定していない状態にする。
void reset (T *aPtr)
 ポインタをリセットする。
演算子オーバーロード
T & operator* () const
 参照演算子。
T * operator-> () const
 参照演算子
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義