BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
NodeIterator< Strategy > Class Template Reference

Iterator through INode tree of objects. More...

Public Member Functions

 NodeIterator (const INode *root)
 
void first ()
 
void next ()
 
const INodegetCurrent ()
 
bool isDone () const
 
int depth () const
 

Protected Attributes

Strategy m_strategy
 
IteratorMemento m_memento_itor
 
const INodemp_root
 

Detailed Description

template<class Strategy>
class NodeIterator< Strategy >

Iterator through INode tree of objects.

Usage example: SampleTreeIterator<Strategy> it(&sample); it.first(); while( !it.is_done() ) { INode *p_sample = it.get_current(); it.next(); }

Definition at line 89 of file NodeIterator.h.


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