BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
containerutils.h File Reference

Defines class CLASS? More...

Include dependency graph for containerutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ModelView::Utils::is_unique_ptr< T >
 
struct  ModelView::Utils::is_unique_ptr< std::unique_ptr< T, D > >
 

Namespaces

 ModelView
 materialitems.h Collection of materials to populate MaterialModel.
 
 ModelView::Utils
 Collection of various widget-related utils.
 

Functions

template<typename It , typename UnaryFunction >
std::vector< double > ModelView::Utils::Apply (It begin, It end, UnaryFunction func)
 Returns vector containing results of elemntwise unary function application. More...
 
template<typename A , typename B >
bool ModelView::Utils::Contains (const A &container, const B &element)
 Returns true if container contains a given element. More...
 
template<typename C >
std::vector< double > ModelView::Utils::Imag (const C &container)
 Returns vector with imag part of complex numbers. More...
 
template<typename C , typename T >
int ModelView::Utils::IndexOfItem (const C &container, const T &item)
 Returns index corresponding to the first occurance of the item in the container. More...
 
template<typename It , typename T >
int ModelView::Utils::IndexOfItem (It begin, It end, const T &item)
 Returns index corresponding to the first occurance of the item in the container. More...
 
template<typename C >
std::vector< double > ModelView::Utils::Real (const C &container)
 Returns vector with real part of complex numbers. More...
 
template<typename C >
ModelView::Utils::UniqueWithOrder (const C &container)
 Returns copy of container with all duplicated elements filtered our. The order is preserved. More...
 

Detailed Description

Defines class CLASS?

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file containerutils.h.