BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::TopItemsStrategy Class Reference

Strategy to find children of given item: only top level items will be given, all property items will be filtered out. More...

Inheritance diagram for ModelView::TopItemsStrategy:
[legend]
Collaboration diagram for ModelView::TopItemsStrategy:
[legend]

Public Member Functions

std::vector< SessionItem * > children (const SessionItem *item) const override
 Returns vector of children of given item. More...
 

Detailed Description

Strategy to find children of given item: only top level items will be given, all property items will be filtered out.

Definition at line 38 of file standardchildrenstrategies.h.

Member Function Documentation

◆ children()

std::vector< SessionItem * > TopItemsStrategy::children ( const SessionItem item) const
overridevirtual

Returns vector of children of given item.

Implements ModelView::ChildrenStrategyInterface.

Definition at line 28 of file standardchildrenstrategies.cpp.

29 {
30  return item ? Utils::TopLevelItems(*item) : std::vector<SessionItem*>();
31 }
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
MVVM_MODEL_EXPORT std::vector< SessionItem * > TopLevelItems(const SessionItem &item)
Returns vector of children representing top level items.
Definition: itemutils.cpp:113
Definition: filesystem.h:81

References ModelView::Utils::TopLevelItems().

Referenced by TEST_F().

Here is the call graph for this function:

The documentation for this class was generated from the following files: