CTR NEX API Reference
nn::nex::GatheringHolder クラス

ギャザリングのホルダークラスです [詳解]

#include <RendezVous/Services/MatchMaking/src/Common/GatheringHolder.h>

+ nn::nex::GatheringHolder の継承関係図

公開メンバ関数

 GatheringHolder ()
 コンストラクタです。 [詳解]
 
 GatheringHolder (Gathering *p)
 コンストラクタです。 [詳解]
 
 GatheringHolder (GatheringHolder const &other)
 コピーコンストラクタです。 [詳解]
 
 ~GatheringHolder ()
 デストラクタです。 [詳解]
 
GatheringGet () const
 保持しているオブジェクトのポインタを返します。 [詳解]
 
Gatheringoperator* () const
 保持しているオブジェクトの参照を返します [詳解]
 
Gatheringoperator-> () const
 保持しているオブジェクトのポインタを返します [詳解]
 
GatheringHolderoperator= (GatheringHolder const &other)
 代入演算子です。 [詳解]
 
GatheringHolderoperator= (Gathering *p)
 代入演算子です。 [詳解]
 
GatheringRelease ()
 保持している Gathering クラスオブジェクトの所有権を解放します。 [詳解]
 

詳解

ギャザリングのホルダークラスです

Gathering クラス及び Gathering の派生クラス( MatchmakeSession ) をゲームサーバーに送受信するために使用されます。 内部で Gathering クラスオブジェクトのポインタを保持しており、代入やデストラクタ呼び出し時に保持しているオブジェクトのデストラクタも呼び出します。

構築子と解体子

nn::nex::GatheringHolder::GatheringHolder ( )

コンストラクタです。

初期値として NULL ポインタがセットされます

nn::nex::GatheringHolder::GatheringHolder ( Gathering p)
explicit

コンストラクタです。

引数で与えられた Gathering クラスオブジェクトをセットします。

引数
[in]pGathering クラスオブジェクトのポインタ
nn::nex::GatheringHolder::~GatheringHolder ( )

デストラクタです。

保持している Gathering クラスオブジェクトをデストラクトします。 GatheringHolder のデストラクト後も Data クラスオブジェクトを使用する場合は、 Release() を呼び出してオブジェクトの所有権を変更してください。

nn::nex::GatheringHolder::GatheringHolder ( GatheringHolder const &  other)

コピーコンストラクタです。

other が保持しているGathering クラスオブジェクトの所有権が this に移ります。

引数
[in]otherGatheringHolder クラスオブジェクト

関数詳解

GatheringHolder& nn::nex::GatheringHolder::operator= ( GatheringHolder const &  other)

代入演算子です。

other が保持している Gathering クラスオブジェクトの所有権が this に移ります。

this が既に Gathering クラスオブジェクトを保持していた場合は削除されます。

引数
[in]otherGatheringHolder クラスオブジェクト
戻り値
自分自身への参照
GatheringHolder& nn::nex::GatheringHolder::operator= ( Gathering p)

代入演算子です。

保持している Gathering クラスオブジェクトをデストラクトした上で、引数で与えられた Gathering クラスオブジェクトをセットします。

引数
[in]pGathering クラスオブジェクトのポインタ
戻り値
自分自身への参照
Gathering& nn::nex::GatheringHolder::operator* ( ) const

保持しているオブジェクトの参照を返します

何も保持していない、または所有権を失った GatheringHolder クラスオブジェクトに対して呼ばないでください。

戻り値
保持しているオブジェクトの参照
Gathering* nn::nex::GatheringHolder::operator-> ( ) const

保持しているオブジェクトのポインタを返します

戻り値
保持しているオブジェクトのポインタ。セットされていない場合 NULL を返します。
Gathering* nn::nex::GatheringHolder::Get ( ) const

保持しているオブジェクトのポインタを返します。

保持している Gathering クラスオブジェクトを返します。セットされていない場合 NULL を返します。

戻り値
保持しているオブジェクトのポインタ
Gathering* nn::nex::GatheringHolder::Release ( )

保持している Gathering クラスオブジェクトの所有権を解放します。

保持している Gathering クラスオブジェクトの所有権を解放し、そのポインタを返します。

戻り値
保持していた Gathering クラスオブジェクトのポインタ