BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Public Member Functions | |
CloneableVector () | |
CloneableVector (const CloneableVector &other) | |
void | push_back (T *t) |
void | emplace_back (std::unique_ptr< T > &&t) |
Private Types | |
using | super = std::vector< std::unique_ptr< T > > |
A vector of unique pointers to objects that are cloneable.
Equips vector<unique_ptr<T>> with copy constructor. For use with polymorphic objects, or in pimpl idiom. The objects pointed to must posses a clone() function.
Definition at line 30 of file CloneableVector.h.
|
private |
Definition at line 32 of file CloneableVector.h.
|
inline |
Definition at line 35 of file CloneableVector.h.
|
inline |
Definition at line 36 of file CloneableVector.h.
|
inline |
Definition at line 42 of file CloneableVector.h.
Referenced by IDetector::addAxis().
|
inline |
Definition at line 43 of file CloneableVector.h.