BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provide SessionItem copying using json based strategy. More...
Classes | |
struct | JsonItemCopyStrategyImpl |
Public Member Functions | |
JsonItemCopyStrategy (const ItemFactoryInterface *item_factory) | |
~JsonItemCopyStrategy () | |
std::unique_ptr< SessionItem > | createCopy (const SessionItem *item) const |
Creates item copy by deep copying all children. SessionItem identifiers will be regenerated. More... | |
Private Attributes | |
std::unique_ptr< JsonItemCopyStrategyImpl > | p_impl |
Provide SessionItem copying using json based strategy.
Definition at line 28 of file jsonitemcopystrategy.h.
JsonItemCopyStrategy::JsonItemCopyStrategy | ( | const ItemFactoryInterface * | item_factory | ) |
Definition at line 26 of file jsonitemcopystrategy.cpp.
References ModelView::CreateItemCopyConverter(), and p_impl.
|
default |
|
virtual |
Creates item copy by deep copying all children. SessionItem identifiers will be regenerated.
Implements ModelView::ItemCopyStrategy.
Definition at line 34 of file jsonitemcopystrategy.cpp.
References p_impl.
|
private |
Definition at line 37 of file jsonitemcopystrategy.h.
Referenced by JsonItemCopyStrategy(), and createCopy().