BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
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) | |
SafePointerVector & | operator= (const SafePointerVector &right) |
SafePointerVector & | operator= (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 () |
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.