BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SafePointerVector< T > Class Template Reference

A vector of pointers, owned by *this, with methods to handle them safely. More...

Public Types

typedef std::vector< T * >::iterator iterator
 
typedef std::vector< T * >::const_iterator const_iterator
 

Public Member Functions

 SafePointerVector (const SafePointerVector &other)
 
 SafePointerVector (SafePointerVector &&other)
 
SafePointerVectoroperator= (const SafePointerVector &right)
 
SafePointerVectoroperator= (SafePointerVector &&right)
 
size_t size () const
 
bool empty () const
 
void push_back (T *pointer)
 
T * operator[] (size_t index)
 
const T * operator[] (size_t index) const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool deleteElement (T *pointer)
 
T * back ()
 
const T * back () const
 
void clear ()
 

Detailed Description

template<class T>
class SafePointerVector< T >

A vector of pointers, owned by *this, with methods to handle them safely.

The objects pointed to must support the ICloneable interface.

Definition at line 26 of file SafePointerVector.h.


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