Mantid
|
The const_iterator class. More...
#include <HKLGenerator.h>
Public Member Functions | |
const_iterator () | |
Default constructor, requirement from boost::iterator_facade. More... | |
const_iterator (const Kernel::V3D ¤t) | |
Return an iterator with min = max = current. More... | |
const_iterator (const Kernel::V3D &hklMin, const Kernel::V3D &hklMax) | |
Return an iterator that can move from min to max, with current = min. More... | |
Private Member Functions | |
void | advance (difference_type) |
Required for compilation in VS. More... | |
void | decrement () |
const Kernel::V3D & | dereference () const |
Returns a const reference to the currently pointed at HKL. More... | |
bool | equal (const const_iterator &other) const |
Returns true if other is at the same position. More... | |
void | increment () |
Increments HKL, l moves fastest, h moves slowest, wrapping around at the max for each index. More... | |
Private Attributes | |
int | m_h |
Kernel::V3D | m_hkl |
int | m_hMax |
int | m_k |
int | m_kMax |
int | m_kMin |
int | m_l |
int | m_lMax |
int | m_lMin |
Friends | |
class | boost::iterator_core_access |
The const_iterator class.
This class uses boost::iterator_facade to provide a const_iterator interface to HKLGenerator. This makes it very easy to use the standard library algorithms. It's a forward iterator, so it's not possible to use operator[] for random access of specific HKLs (this would have to be done on the generated container if that supports it).
While the iterators can be instantiated directly, the intention is to use HKLGenerator::begin() and HKLGenerator::end().
Definition at line 96 of file HKLGenerator.h.
Mantid::Geometry::HKLGenerator::const_iterator::const_iterator | ( | ) |
Default constructor, requirement from boost::iterator_facade.
Definition at line 62 of file HKLGenerator.cpp.
|
explicit |
Return an iterator with min = max = current.
Definition at line 66 of file HKLGenerator.cpp.
|
explicit |
Return an iterator that can move from min to max, with current = min.
Definition at line 71 of file HKLGenerator.cpp.
|
inlineprivate |
Required for compilation in VS.
Forward iterator can not be used that way, so the implementation does nothing.
Definition at line 121 of file HKLGenerator.h.
|
inlineprivate |
Definition at line 122 of file HKLGenerator.h.
|
inlineprivate |
Returns a const reference to the currently pointed at HKL.
Definition at line 117 of file HKLGenerator.h.
|
inlineprivate |
Returns true if other is at the same position.
Definition at line 112 of file HKLGenerator.h.
|
private |
Increments HKL, l moves fastest, h moves slowest, wrapping around at the max for each index.
Definition at line 78 of file HKLGenerator.cpp.
|
friend |
Definition at line 107 of file HKLGenerator.h.
|
private |
Definition at line 124 of file HKLGenerator.h.
|
private |
Definition at line 125 of file HKLGenerator.h.
|
private |
Definition at line 127 of file HKLGenerator.h.
|
private |
Definition at line 124 of file HKLGenerator.h.
|
private |
Definition at line 128 of file HKLGenerator.h.
|
private |
Definition at line 128 of file HKLGenerator.h.
|
private |
Definition at line 124 of file HKLGenerator.h.
|
private |
Definition at line 129 of file HKLGenerator.h.
|
private |
Definition at line 129 of file HKLGenerator.h.