BornAgain
1.19.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 * >::const_iterator | const_iterator |
typedef std::vector< T * >::iterator | iterator |
Public Member Functions | |
SafePointerVector () | |
SafePointerVector (const SafePointerVector &other) | |
SafePointerVector (SafePointerVector &&other) | |
~SafePointerVector () | |
T * | back () |
const T * | back () const |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
SafePointerVector & | operator= (const SafePointerVector &right) |
SafePointerVector & | operator= (SafePointerVector &&right) |
T * | operator[] (size_t index) |
const T * | operator[] (size_t index) const |
void | push_back (T *pointer) |
size_t | size () const |
Private Attributes | |
std::vector< T * > | m_pointers |
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 31 of file SafePointerVector.h.
typedef std::vector<T*>::const_iterator SafePointerVector< T >::const_iterator |
Definition at line 34 of file SafePointerVector.h.
typedef std::vector<T*>::iterator SafePointerVector< T >::iterator |
Definition at line 33 of file SafePointerVector.h.
|
inline |
Definition at line 35 of file SafePointerVector.h.
SafePointerVector< T >::SafePointerVector | ( | const SafePointerVector< T > & | other | ) |
Definition at line 60 of file SafePointerVector.h.
References SafePointerVector< T >::begin(), and SafePointerVector< T >::end().
SafePointerVector< T >::SafePointerVector | ( | SafePointerVector< T > && | other | ) |
Definition at line 67 of file SafePointerVector.h.
|
inline |
Definition at line 38 of file SafePointerVector.h.
References SafePointerVector< T >::clear().
|
inline |
Definition at line 52 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by MultiLayer::addLayerWithTopRoughness().
|
inline |
|
inline |
Definition at line 47 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by SafePointerVector< T >::SafePointerVector(), and SafePointerVector< T >::operator=().
|
inline |
void SafePointerVector< T >::clear |
Definition at line 92 of file SafePointerVector.h.
Referenced by SafePointerVector< T >::~SafePointerVector().
|
inline |
Definition at line 43 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by DetectorMask::hasMasks(), and DetectorMask::process_masks().
|
inline |
Definition at line 49 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by SafePointerVector< T >::SafePointerVector(), and SafePointerVector< T >::operator=().
|
inline |
SafePointerVector< T > & SafePointerVector< T >::operator= | ( | const SafePointerVector< T > & | right | ) |
Definition at line 73 of file SafePointerVector.h.
References SafePointerVector< T >::begin(), and SafePointerVector< T >::end().
SafePointerVector< T > & SafePointerVector< T >::operator= | ( | SafePointerVector< T > && | right | ) |
Definition at line 84 of file SafePointerVector.h.
|
inline |
|
inline |
|
inline |
Definition at line 44 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by ParticleLayout::addAndRegisterAbstractParticle(), MultiLayer::addAndRegisterInterface(), MultiLayer::addAndRegisterLayer(), Layer::addLayout(), DetectorMask::addMask(), IParticle::decompose(), ParticleComposition::decompose(), ParticleDistribution::generateParticles(), and ParticleLayout::particles().
|
inline |
Definition at line 42 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by MultiLayer::check_interface_index(), MultiLayer::check_layer_index(), MultiLayer::getChildren(), DetectorMask::initMaskData(), MultiLayer::numberOfLayers(), Layer::numberOfLayouts(), DetectorMask::numberOfMasks(), DetectorMask::process_masks(), and OutputData< T >::rank().
|
private |
Definition at line 57 of file SafePointerVector.h.
Referenced by SafePointerVector< T >::back(), SafePointerVector< T >::begin(), SafePointerVector< T >::empty(), SafePointerVector< T >::end(), SafePointerVector< T >::operator[](), SafePointerVector< T >::push_back(), and SafePointerVector< T >::size().