generator_ptr< T > Class Template Reference

#include <generic_fixture.h>

Public Member Functions

 generator_ptr (abstract_generator< T > *ptr=0)
 
 generator_ptr (const generator_ptr< T > &other)
 
generator_ptroperator= (const generator_ptr< T > &other)
 
generator_ptroperator= (abstract_generator< T > *ptr)
 
virtual ~generator_ptr ()
 
const abstract_generator< T > & operator* () const
 
abstract_generator< T > & operator* ()
 
const abstract_generator< T > * operator-> () const
 
abstract_generator< T > * operator-> ()
 
bool operator== (const abstract_generator< T > *other)
 
bool operator!= (const abstract_generator< T > *other)
 

Friends

std::ostream & operator<< (std::ostream &out, const generator_ptr< T > &ptr)
 

Detailed Description

template<class T>
class illumina::interop::unittest::generator_ptr< T >

Smart pointer wrapper

Smart pointer wrapper

Performs deep copies

Constructor & Destructor Documentation

generator_ptr ( abstract_generator< T > *  ptr = 0)
inline

Constructor

Parameters
ptrpointer to an abstract generator
generator_ptr ( const generator_ptr< T > &  other)
inline

Copy Constructor

Parameters
othersource object to copy
virtual ~generator_ptr ( )
inlinevirtual

Destructor

Member Function Documentation

bool operator!= ( const abstract_generator< T > *  other)
inline

Test if current pointer does not equal another

Parameters
other
Returns
true if they do not point to same address
const abstract_generator<T>& operator* ( ) const
inline

Get access to underlying object

Returns
reference to abstract generator
abstract_generator<T>& operator* ( )
inline

Get access to underlying object

Returns
reference to abstract generator
const abstract_generator<T>* operator-> ( ) const
inline

Get access to underlying pointer

Returns
pointer to abstract generator
abstract_generator<T>* operator-> ( )
inline

Get access to underlying pointer

Returns
pointer to abstract generator
generator_ptr& operator= ( const generator_ptr< T > &  other)
inline

Copy operator

Parameters
othersource object to copy
Returns
this
generator_ptr& operator= ( abstract_generator< T > *  ptr)
inline

Copy operator

Parameters
ptrsource object to copy
Returns
this
bool operator== ( const abstract_generator< T > *  other)
inline

Test if current pointer equals another

Parameters
otherother pointer
Returns
true if they point to same address

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const generator_ptr< T > &  ptr 
)
friend

Write name of generator to output stream

Parameters
outoutput stream
ptrgenerator pointer
Returns
output stream

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