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

Strategy to find children of given item: gives all actual children back. More...

Inheritance diagram for ModelView::AllChildrenStrategy:
[legend]
Collaboration diagram for ModelView::AllChildrenStrategy:
[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: gives all actual children back.

Definition at line 30 of file standardchildrenstrategies.h.

Member Function Documentation

◆ children()

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

Returns vector of children of given item.

Implements ModelView::ChildrenStrategyInterface.

Definition at line 23 of file standardchildrenstrategies.cpp.

24 {
25  return item ? item->children() : std::vector<SessionItem*>();
26 }
std::vector< SessionItem * > children() const
Returns vector of children formed from all chidlren from all tags.

References ModelView::SessionItem::children().

Referenced by TEST_F().

Here is the call graph for this function:

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