C12Adapter Opensource C++ Interface
MGenericNoncopyablePtr< Type > Class Template Reference

Generic pointer that cannot be copied. More...

Inheritance diagram for MGenericNoncopyablePtr< Type >:

Public Types

typedef Type element_type
 Type of the unique pointer.
 

Public Member Functions

Type * operator-> () const
 Field dereference operator.
 
Type & operator* () const
 Pointer dereference operator.
 
Type * get () const
 Get the underlying pointer.
 
Type * release ()
 Return the the underlying pointer while nullifying the unique pointer object.
 

Protected Member Functions

 MGenericNoncopyablePtr (Type *ptr=NULL)
 Protected explicit initialization constructor.
 
 ~MGenericNoncopyablePtr ()
 Protected destructor. More...
 

Protected Attributes

Type * m_pointer
 Pointer to object.
 

Detailed Description

template<typename Type>
class MGenericNoncopyablePtr< Type >

Generic pointer that cannot be copied.

Abstract class

Constructor & Destructor Documentation

template<typename Type>
MGenericNoncopyablePtr< Type >::~MGenericNoncopyablePtr ( )
inlineprotected

Protected destructor.

Generic pointer is a fully hidden.