BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
This can hold any item which belongs to a sample.
Removes the need to derive every xxxItem from a same base class and then try dynamic_cast'ing it.
Definition at line 33 of file SampleItem.h.
Public Member Functions | |
template<typename T > | |
SampleItem (T *item) | |
template<typename T > | |
T | get_if () |
Short version to get a contained pointer (the std::get_if would return pointer-to-pointer) More... | |
Private Types | |
using | base = VariantForSampleItems |
|
private |
Definition at line 51 of file SampleItem.h.
|
inline |
Definition at line 36 of file SampleItem.h.
|
inline |
Short version to get a contained pointer (the std::get_if would return pointer-to-pointer)
Definition at line 43 of file SampleItem.h.
Referenced by SampleView::onAboutToRemoveItem(), and SampleView::onRequestViewInRealSpace().