marian::SmartPointer< T > Class Template Reference

Template of deep-coping smart pointer.

#include <smartPointer.hpp>

Public Member Functions

 SmartPointer ()
 Default constructor.
 
 SmartPointer (const T &inner)
 Constructor.
 
 ~SmartPointer ()
 Destructor.
 
 SmartPointer (const SmartPointer< T > &original)
 Copy constructor.
 
SmartPointeroperator= (const SmartPointer< T > &original)
 Assignment operator.
 
T & operator* ()
 Method dereferencing pointer.
 
const T & operator* () const
 Method dereferencing pointer.
 
T * operator-> ()
 Method dereferencing pointer.
 
const T * operator-> () const
 Method dereferencing pointer.
 
bool isEmpty () const
 Check if pointer owns any object.
 

Private Attributes

T * data_ptr_
 Pointer to data owned by pointer.
 

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