julian::SmartPointer< T > Class Template Reference

Template of deep-coping smart pointer. More...

#include <smartPointer.hpp>

Public Member Functions

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

Private Attributes

T * data_ptr_
 Pointer to data owned by pointer. More...
 

Detailed Description

template<class T>
class julian::SmartPointer< T >

Template of deep-coping smart pointer.

Examples:
bootstrapperComparison.cpp, constrainedBootstrapperExample.cpp, interpolationExample.cpp, optionPricingExample.cpp, and unconstrainedBootstrapperExample.cpp.

Constructor & Destructor Documentation

template<class T>
julian::SmartPointer< T >::SmartPointer ( )
inline

Default constructor.

template<class T>
julian::SmartPointer< T >::SmartPointer ( const T &  inner)
inline

Constructor.

template<class T>
julian::SmartPointer< T >::~SmartPointer ( )
inline

Destructor.

template<class T>
julian::SmartPointer< T >::SmartPointer ( const SmartPointer< T > &  original)
inline

Copy constructor.

Member Function Documentation

template<class T>
bool julian::SmartPointer< T >::isEmpty ( ) const
inline

Check if pointer owns any object.

template<class T>
T& julian::SmartPointer< T >::operator* ( )
inline

Method dereferencing pointer.

template<class T>
const T& julian::SmartPointer< T >::operator* ( ) const
inline

Method dereferencing pointer.

template<class T>
T* julian::SmartPointer< T >::operator-> ( )
inline

Method dereferencing pointer.

template<class T>
const T* julian::SmartPointer< T >::operator-> ( ) const
inline

Method dereferencing pointer.

template<class T>
SmartPointer& julian::SmartPointer< T >::operator= ( const SmartPointer< T > &  original)
inline

Assignment operator.

Member Data Documentation

template<class T>
T* julian::SmartPointer< T >::data_ptr_
private

Pointer to data owned by pointer.


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