BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
OutputDataIterator.h File Reference
Include dependency graph for OutputDataIterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OutputDataIterator< TValue, TContainer >
 

Functions

template<class TValue , class TContainer >
void swap (OutputDataIterator< TValue, TContainer > &left, OutputDataIterator< TValue, TContainer > &right)
 
template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator== (const OutputDataIterator< TValue1, TContainer1 > &left, const OutputDataIterator< TValue2, TContainer2 > &right)
 
template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator!= (const OutputDataIterator< TValue1, TContainer1 > &left, const OutputDataIterator< TValue2, TContainer2 > &right)
 

Detailed Description

Defines and implements template class OutputDataIterator.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file OutputDataIterator.h.

Function Documentation

◆ swap()

template<class TValue , class TContainer >
void swap ( OutputDataIterator< TValue, TContainer > &  left,
OutputDataIterator< TValue, TContainer > &  right 
)

make Swappable

Definition at line 91 of file OutputDataIterator.h.

93 {
94  left.swap(right);
95 }
void swap(OutputDataIterator< TValue, TContainer > &other)
Swaps iterators.

References OutputDataIterator< TValue, TContainer >::swap().

Referenced by createTransformedFormFactor(), OutputDataIterator< TValue, TContainer >::operator=(), SampleProvider::operator=(), OutputDataIterator< TValue, TContainer >::swap(), DepthProbeElement::swapContent(), OptionContainer::swapContent(), PolarizationHandler::swapContent(), SimulationElement::swapContent(), SpecularSimulationElement::swapContent(), and LLData< T >::swapContents().

Here is the call graph for this function:

◆ operator==()

template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator== ( const OutputDataIterator< TValue1, TContainer1 > &  left,
const OutputDataIterator< TValue2, TContainer2 > &  right 
)

test for equality

Definition at line 200 of file OutputDataIterator.h.

202 {
203  return left.getContainer() == right.getContainer() && left.getIndex() == right.getIndex();
204 }
size_t getIndex() const
Returns current index.
TContainer * getContainer() const
Returns container pointer.

References OutputDataIterator< TValue, TContainer >::getContainer(), and OutputDataIterator< TValue, TContainer >::getIndex().

Here is the call graph for this function:

◆ operator!=()

template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator!= ( const OutputDataIterator< TValue1, TContainer1 > &  left,
const OutputDataIterator< TValue2, TContainer2 > &  right 
)

test for inequality

Definition at line 208 of file OutputDataIterator.h.

210 {
211  return !(left == right);
212 }