SPATMOD::IMAGE::STAGE_AUTOPTR Class Reference

Automatic STAGE pointer which keeps track of ownership and destroys when needed. More...

#include <spatmod/imagestageautoptr.h>

List of all members.

Public Member Functions

 STAGE_AUTOPTR (const STAGE_AUTOPTR &rhs)
 STAGE_AUTOPTR (STAGE *pStage, bool TakeOwnership)
 STAGE_AUTOPTR ()
 ~STAGE_AUTOPTR ()
void Assign (STAGE_AUTOPTR &StagePtr, bool TakeOwnership)
void Assign (STAGE *pStage, bool TakeOwnership)
STAGEDetach ()
bool IsAssigned () const
bool IsOwner () const
 operator STAGE * () const
STAGEoperator* () const
STAGEoperator-> () const
STAGE_AUTOPTRoperator= (const STAGE_AUTOPTR &rhs)

Detailed Description

Automatic STAGE pointer which keeps track of ownership and destroys when needed.


Constructor & Destructor Documentation

SPATMOD::IMAGE::STAGE_AUTOPTR::STAGE_AUTOPTR (  )  [inline]

Default constructor.

SPATMOD::IMAGE::STAGE_AUTOPTR::STAGE_AUTOPTR ( STAGE pStage,
bool  TakeOwnership 
) [inline]

Construct and attach stage.

SPATMOD::IMAGE::STAGE_AUTOPTR::STAGE_AUTOPTR ( const STAGE_AUTOPTR rhs  )  [inline]

Copy constructor, copy will not have ownership.

SPATMOD::IMAGE::STAGE_AUTOPTR::~STAGE_AUTOPTR (  ) 

Destructor.


Member Function Documentation

void SPATMOD::IMAGE::STAGE_AUTOPTR::Assign ( STAGE_AUTOPTR StagePtr,
bool  TakeOwnership 
)

Assign with specified ownership.

void SPATMOD::IMAGE::STAGE_AUTOPTR::Assign ( STAGE pStage,
bool  TakeOwnership 
)

Assign with specified ownership.

STAGE* SPATMOD::IMAGE::STAGE_AUTOPTR::Detach (  )  [inline]

Detach associated stage.

Returns:
Associated stage, caller must ensure deletion if STAGE_AUTO_PTR was previous owner.
bool SPATMOD::IMAGE::STAGE_AUTOPTR::IsAssigned (  )  const [inline]

Determine if has stage assigned.

bool SPATMOD::IMAGE::STAGE_AUTOPTR::IsOwner (  )  const [inline]

Determine if owner of stage pointer.

SPATMOD::IMAGE::STAGE_AUTOPTR::operator STAGE * (  )  const [inline]

Cast to STAGE*.

STAGE& SPATMOD::IMAGE::STAGE_AUTOPTR::operator* (  )  const [inline]

Dereference operator.

STAGE* SPATMOD::IMAGE::STAGE_AUTOPTR::operator-> (  )  const [inline]

Pointer operator.

STAGE_AUTOPTR& SPATMOD::IMAGE::STAGE_AUTOPTR::operator= ( const STAGE_AUTOPTR rhs  ) 

Assignment operator, does not transfer ownership.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:40:13 2012 for TNTsdk 2012 by  doxygen 1.6.1