BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Types | |
typedef std::vector< T * >::iterator | iterator |
typedef std::vector< T * >::const_iterator | const_iterator |
Public Member Functions | |
SafePointerVector () | |
SafePointerVector (const SafePointerVector &other) | |
SafePointerVector (SafePointerVector &&other) | |
~SafePointerVector () | |
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 () |
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 26 of file SafePointerVector.h.
typedef std::vector<T*>::iterator SafePointerVector< T >::iterator |
Definition at line 29 of file SafePointerVector.h.
typedef std::vector<T*>::const_iterator SafePointerVector< T >::const_iterator |
Definition at line 30 of file SafePointerVector.h.
|
inline |
Definition at line 31 of file SafePointerVector.h.
SafePointerVector< T >::SafePointerVector | ( | const SafePointerVector< T > & | other | ) |
Definition at line 58 of file SafePointerVector.h.
References SafePointerVector< T >::begin(), and SafePointerVector< T >::end().
SafePointerVector< T >::SafePointerVector | ( | SafePointerVector< T > && | other | ) |
Definition at line 65 of file SafePointerVector.h.
|
inline |
Definition at line 34 of file SafePointerVector.h.
References SafePointerVector< T >::clear().
SafePointerVector< T > & SafePointerVector< T >::operator= | ( | const SafePointerVector< T > & | right | ) |
Definition at line 70 of file SafePointerVector.h.
References SafePointerVector< T >::begin(), and SafePointerVector< T >::end().
SafePointerVector< T > & SafePointerVector< T >::operator= | ( | SafePointerVector< T > && | right | ) |
Definition at line 81 of file SafePointerVector.h.
|
inline |
Definition at line 38 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by MultiLayer::check_interface_index(), MultiLayer::check_layer_index(), MultiLayer::getChildren(), OutputData< T >::getRank(), DetectorMask::initMaskData(), MultiLayer::numberOfLayers(), Layer::numberOfLayouts(), DetectorMask::numberOfMasks(), and DetectorMask::process_masks().
|
inline |
Definition at line 39 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by DetectorMask::hasMasks(), and DetectorMask::process_masks().
|
inline |
Definition at line 40 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 |
|
inline |
|
inline |
Definition at line 43 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by SafePointerVector< T >::operator=(), and SafePointerVector< T >::SafePointerVector().
|
inline |
|
inline |
Definition at line 45 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by SafePointerVector< T >::operator=(), and SafePointerVector< T >::SafePointerVector().
|
inline |
|
inline |
Definition at line 89 of file SafePointerVector.h.
|
inline |
Definition at line 50 of file SafePointerVector.h.
References SafePointerVector< T >::m_pointers.
Referenced by MultiLayer::addLayerWithTopRoughness().
|
inline |
void SafePointerVector< T >::clear |
Definition at line 99 of file SafePointerVector.h.
Referenced by DetectorMask::removeMasks(), and SafePointerVector< T >::~SafePointerVector().
|
private |
Definition at line 55 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().