BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Class that contains and owns a list of form factors and the index of their containing layer. More...
Public Member Functions | |
SlicedFormFactorList ()=default | |
SlicedFormFactorList (SlicedFormFactorList &&other)=default | |
~SlicedFormFactorList ()=default | |
SlicedFormFactorList & | operator= (SlicedFormFactorList &&other)=default |
std::pair< const IFormFactor *, size_t > | operator[] (size_t index) const |
std::map< size_t, std::vector< HomogeneousRegion > > | regionMap () const |
size_t | size () const |
Static Public Member Functions | |
static SlicedFormFactorList | createSlicedFormFactors (const IParticle &particle, const std::vector< Slice > &slices, double z_ref) |
Private Member Functions | |
void | addParticle (IParticle &particle, const std::vector< Slice > &slices, double z_ref) |
Private Attributes | |
std::vector< std::pair< std::unique_ptr< IFormFactor >, size_t > > | m_ff_list |
std::map< size_t, std::vector< HomogeneousRegion > > | m_region_map |
Class that contains and owns a list of form factors and the index of their containing layer.
This class also handles the slicing of form factors if they cross layer interfaces.
Definition at line 36 of file SlicedFormFactorList.h.
|
default |
|
default |
|
default |
|
private |
Definition at line 44 of file SlicedFormFactorList.cpp.
References IParticle::createSlicedParticle(), m_ff_list, m_region_map, and IParticle::translate().
Referenced by createSlicedFormFactors().
|
static |
Definition at line 32 of file SlicedFormFactorList.cpp.
References addParticle(), and IParticle::decompose().
Referenced by ProcessedLayout::processParticle().
|
default |
std::pair< const IFormFactor *, size_t > SlicedFormFactorList::operator[] | ( | size_t | index | ) | const |
Definition at line 71 of file SlicedFormFactorList.cpp.
References m_ff_list, and size().
std::map< size_t, std::vector< HomogeneousRegion > > SlicedFormFactorList::regionMap | ( | ) | const |
Definition at line 79 of file SlicedFormFactorList.cpp.
References m_region_map.
size_t SlicedFormFactorList::size | ( | ) | const |
Definition at line 66 of file SlicedFormFactorList.cpp.
References m_ff_list.
Referenced by operator[]().
|
private |
Definition at line 55 of file SlicedFormFactorList.h.
Referenced by addParticle(), operator[](), and size().
|
private |
Definition at line 56 of file SlicedFormFactorList.h.
Referenced by addParticle(), and regionMap().