BornAgain
1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
NodeIterator.cpp
Go to the documentation of this file.
1
// ************************************************************************** //
2
//
3
// BornAgain: simulate and fit scattering at grazing incidence
4
//
5
//! @file Param/Node/NodeIterator.cpp
6
//! @brief Implements class IteratorState.
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************** //
14
15
#include "
Param/Node/NodeIterator.h
"
16
17
IteratorState::IteratorState
(
const
INode
* single_element) : m_position(0)
18
{
19
m_samples
.push_back(single_element);
20
}
21
22
IteratorState::IteratorState
(std::vector<const INode*> samples) : m_samples(samples), m_position(0)
23
{
24
}
NodeIterator.h
Defines classes IteratorState, IteratorMemento and NodeIterator.
INode
Base class for tree-like structures containing parameterized objects.
Definition:
INode.h:49
IteratorState::m_samples
std::vector< const INode * > m_samples
Definition:
NodeIterator.h:46
IteratorState::IteratorState
IteratorState()
Param
Node
NodeIterator.cpp
Generated by
1.9.1