|
C++ mpi module for stochmagnet_main Package
|
this class describes a const iterator with a constant stride 2 templates parameter: More...
#include <CORE_StrideIterator.h>
Public Types | |
| typedef std::iterator_traits< Ptr_Type >::value_type | value_type |
| copy value type | |
| typedef std::iterator_traits< Ptr_Type >::reference | reference |
| reference value type | |
| typedef std::iterator_traits< Ptr_Type >::pointer | pointer |
| pointer value type | |
| typedef std::iterator_traits< Ptr_Type >::difference_type | difference_type |
| displacement type | |
| typedef std::random_access_iterator_tag | iterator_category |
| type of iterator | |
Public Member Functions | |
| CORE_StrideIterator () | |
| default constructor | |
| CORE_StrideIterator (Ptr_Type x) | |
| initializer constructor More... | |
| CORE_StrideIterator (const self &x) | |
| copy constructor More... | |
| reference | operator* () |
| return the pointer of the iterator More... | |
| reference | operator[] (difference_type n) |
| access to n-th element of the list More... | |
| self & | operator+= (difference_type x) |
| move the iterator on x elements More... | |
| self & | operator++ () |
| return the next element and set the iterator to next element | |
| self | operator++ (int s) |
| return the current element and set the iterator to next element More... | |
| self & | operator-- () |
| return the previous element and set the iterator to previous element | |
| self | operator-- (int s) |
| return the current element and set the iterator to previous element More... | |
Friends | |
| self | operator+ (self x, difference_type y) |
| add y element to x iterator : x:=x+y More... | |
| self | operator+ (difference_type x, self y) |
| add x elements to y iterator : y:=y+x More... | |
| difference_type | operator- (self x, self y) |
| return the number of difference elements number between 2 iterators More... | |
| bool | operator== (self x, self y) |
| compare the 2 iterator if equal More... | |
| bool | operator!= (self x, self y) |
| compare the 2 iterator if not equal More... | |
| bool | operator< (self x, self y) |
| compare the 2 iterators on same values More... | |
this class describes a const iterator with a constant stride 2 templates parameter:
|
inlineexplicit |
initializer constructor
| [in] | x | initialize value |
|
inline |
copy constructor
| [in] | x | : iterator to copy |
|
inline |
return the pointer of the iterator
|
inline |
return the current element and set the iterator to next element
| [in] | s | : number of elements to jump (not used) |
|
inline |
move the iterator on x elements
| [in] | x | moved elements number |
|
inline |
return the current element and set the iterator to previous element
| [in] | s | : number of elements to jump (not used) |
|
inline |
access to n-th element of the list
compare the 2 iterator if not equal
| [in] | x | first iterator to compare |
| [in] | y | second iterator to compare |
|
friend |
add x elements to y iterator : y:=y+x
| [in] | x | number of elements to add |
| [in] | y | iterator |
|
friend |
add y element to x iterator : x:=x+y
| [in] | x | iterator |
| [in] | y | number of elements to add |
|
friend |
return the number of difference elements number between 2 iterators
| [in] | x | first iterator to compare |
| [in] | y | second iterator to compare |
compare the 2 iterators on same values
| [in] | x | first iterator to compare |
| [in] | y | second iterator to compare |
compare the 2 iterator if equal
| [in] | x | first iterator to compare |
| [in] | y | second iterator to compare |