BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
containeritem.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/standarditems/containeritem.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_CONTAINERITEM_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_CONTAINERITEM_H
17 
19 
20 namespace ModelView {
21 
22 //! Simple container to store any type of children.
23 //! Used as convenience item to create branch with uniform children beneath.
24 
25 class MVVM_MODEL_EXPORT ContainerItem : public CompoundItem {
26 public:
27  static inline const std::string T_ITEMS = "T_ITEMS";
28 
29  ContainerItem(const std::string& modelType = Constants::ContainerItemType);
30 
31  bool empty() const;
32 
33  size_t size() const;
34 };
35 
36 } // namespace ModelView
37 
38 #endif // BORNAGAIN_MVVM_MODEL_MVVM_STANDARDITEMS_CONTAINERITEM_H
Complex item holding mixed SessionItem types (single properties and other CompountItems).
Definition: compounditem.h:28
Simple container to store any type of children.
Definition: containeritem.h:25
Defines class CLASS?
const model_type ContainerItemType
Definition: mvvm_types.h:49
materialitems.h Collection of materials to populate MaterialModel.