BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
IterationStrategy Class Referenceabstract
Inheritance diagram for IterationStrategy:
Collaboration diagram for IterationStrategy:

Public Member Functions

virtual IterationStrategyclone () const =0
 
virtual IteratorMemento first (const INode *p_root)=0
 
virtual void next (IteratorMemento &iterator_stack) const =0
 
virtual bool isDone (IteratorMemento &iterator_stack) const =0
 

Detailed Description

Abstract base class for tree traversal strategies, for use in INodeVisitor.

For definition of different strategies see https://en.wikipedia.org/wiki/Tree_traversal.

Definition at line 25 of file IterationStrategy.h.

Member Function Documentation

◆ clone()

virtual IterationStrategy* IterationStrategy::clone ( ) const
pure virtual

Implemented in PostorderStrategy, and PreorderStrategy.

◆ first()

virtual IteratorMemento IterationStrategy::first ( const INode p_root)
pure virtual

Implemented in PostorderStrategy, and PreorderStrategy.

◆ next()

virtual void IterationStrategy::next ( IteratorMemento iterator_stack) const
pure virtual

Implemented in PostorderStrategy, and PreorderStrategy.

◆ isDone()

virtual bool IterationStrategy::isDone ( IteratorMemento iterator_stack) const
pure virtual

Implemented in PostorderStrategy, and PreorderStrategy.


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