BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
OutputDataIterator.h File Reference

Defines and implements template class OutputDataIterator. More...

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 >
 Iterator for underlying OutputData container. More...
 

Macros

#define BORNAGAIN_DEVICE_DATA_OUTPUTDATAITERATOR_H
 

Functions

template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator!= (const OutputDataIterator< TValue1, TContainer1 > &left, const OutputDataIterator< TValue2, TContainer2 > &right)
 test for inequality More...
 
template<class TValue1 , class TContainer1 , class TValue2 , class TContainer2 >
bool operator== (const OutputDataIterator< TValue1, TContainer1 > &left, const OutputDataIterator< TValue2, TContainer2 > &right)
 test for equality More...
 
template<class TValue , class TContainer >
void swap (OutputDataIterator< TValue, TContainer > &left, OutputDataIterator< TValue, TContainer > &right)
 make Swappable More...
 

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.

Macro Definition Documentation

◆ BORNAGAIN_DEVICE_DATA_OUTPUTDATAITERATOR_H

#define BORNAGAIN_DEVICE_DATA_OUTPUTDATAITERATOR_H

Definition at line 21 of file OutputDataIterator.h.

Function Documentation

◆ 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 212 of file OutputDataIterator.h.

214 {
215  return !(left == right);
216 }

◆ 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 204 of file OutputDataIterator.h.

206 {
207  return left.getContainer() == right.getContainer() && left.getIndex() == right.getIndex();
208 }
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:

◆ swap()

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

make Swappable

Definition at line 95 of file OutputDataIterator.h.

97 {
98  left.swap(right);
99 }
void swap(OutputDataIterator< TValue, TContainer > &other)
Swaps iterators.

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

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

Here is the call graph for this function: