|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
The container must have iterator types. More...


Public Types | |
| typedef std::random_access_iterator_tag | iterator_category |
| An iterator must have an iterator category. More... | |
| typedef unsigned short | value_type |
| An iterator must have a value type. More... | |
| typedef value_type * | pointer |
| An iterator must have a pointer typea. More... | |
| typedef value_type & | reference |
| An iterator must have a reference type. More... | |
| typedef ptrdiff_t | difference_type |
| An iterator must have a difference_type. More... | |
Public Member Functions | |
| reference | operator* () const |
| Dereference the pointer. More... | |
| pointer | operator-> () const |
| Dereference the pointer. More... | |
| reference | operator[] (difference_type const n) const |
| Get element at i + n by reference ([] operator). More... | |
| difference_type | operator- (iterator_base< container, content, reverse > const &i) const |
| The - operator: find distance between two iterators. More... | |
| bool | operator== (iterator_base< container, content, reverse > const &i) const |
| The == operator. More... | |
| bool | operator!= (iterator_base< container, content, reverse > const &i) const |
| The != operator. More... | |
| bool | operator< (iterator_base< container, content, reverse > const &i) const |
| The < operator is used to compare iterators. More... | |
Protected Member Functions | |
| void | increment () |
| Increment the iterator. More... | |
| void | decrement () |
| Decrement the iterator. More... | |
| void | shift (difference_type const n) |
| Shift iterator n places. More... | |
| iterator_base () | |
| The iterator is default constructible. More... | |
| iterator_base (container *v, difference_type position) | |
| This constructor allows block_ushort to create non-default iterators. More... | |
Protected Attributes | |
| container * | v |
| Store a pointer to a block_ushort we can iterate over: 0 if no block_ushort. More... | |
| difference_type | position |
| Mark position of iterator within block_ushort. More... | |
Friends | |
| class | block_ushort |
The container must have iterator types.
We create a suitable class here.
Definition at line 321 of file block_ushort.hpp.
| typedef ptrdiff_t gsl::block_ushort::iterator_base< container, content, reverse >::difference_type |
An iterator must have a difference_type.
Definition at line 344 of file block_ushort.hpp.
| typedef std::random_access_iterator_tag gsl::block_ushort::iterator_base< container, content, reverse >::iterator_category |
An iterator must have an iterator category.
Definition at line 327 of file block_ushort.hpp.
| typedef value_type* gsl::block_ushort::iterator_base< container, content, reverse >::pointer |
An iterator must have a pointer typea.
Definition at line 335 of file block_ushort.hpp.
| typedef value_type& gsl::block_ushort::iterator_base< container, content, reverse >::reference |
An iterator must have a reference type.
Definition at line 339 of file block_ushort.hpp.
| typedef unsigned short gsl::block_ushort::iterator_base< container, content, reverse >::value_type |
An iterator must have a value type.
Definition at line 331 of file block_ushort.hpp.
|
inlineprotected |
The iterator is default constructible.
Definition at line 545 of file block_ushort.hpp.
References gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
inlineprotected |
This constructor allows block_ushort to create non-default iterators.
| v | The block_ushort that creates this |
| position | The initial postion of the iterator |
Definition at line 551 of file block_ushort.hpp.
|
inlineprotected |
Decrement the iterator.
Definition at line 514 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
Referenced by gsl::block_ushort::iterator_t< reverse >::operator--(), and gsl::block_ushort::const_iterator_t< reverse >::operator--().
|
inlineprotected |
Increment the iterator.
Definition at line 497 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
Referenced by gsl::block_ushort::iterator_t< reverse >::operator++(), and gsl::block_ushort::const_iterator_t< reverse >::operator++().
|
inline |
The != operator.
| i | The iterator being compared |
true or false according as i != *this Definition at line 468 of file block_ushort.hpp.
References gsl::block_ushort::iterator_base< container, content, reverse >::operator==().
|
inline |
Dereference the pointer.
Definition at line 351 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::exception::GSL_EFAULT, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
inline |
The - operator: find distance between two iterators.
| i | A second iterator |
this and i Definition at line 436 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
Referenced by gsl::block_ushort::const_iterator_t< reverse >::operator-(), and gsl::block_ushort::iterator_t< reverse >::operator-().
|
inline |
Dereference the pointer.
Definition at line 379 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
inline |
The < operator is used to compare iterators.
This only makes sense if the iterators iterate over the same block_ushort and the function calls a GSL error handler and returns false if they do not.
| i | The iterator being compared |
true or false according as i < j Definition at line 478 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
inline |
The == operator.
| i | The iterator being compared |
true or false according as i != *this Definition at line 460 of file block_ushort.hpp.
References gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
Referenced by gsl::block_ushort::iterator_base< container, content, reverse >::operator!=().
|
inline |
Get element at i + n by reference ([] operator).
| n | The offset from i |
Definition at line 406 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::rstat::n(), gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
inlineprotected |
Shift iterator n places.
| n | A difference_type value to be added to position of iterator |
Definition at line 531 of file block_ushort.hpp.
References gsl::exception::GSL_EFAILED, gsl::rstat::n(), gsl::block_ushort::iterator_base< container, content, reverse >::position, and gsl::block_ushort::iterator_base< container, content, reverse >::v.
|
friend |
Definition at line 322 of file block_ushort.hpp.
|
protected |
Mark position of iterator within block_ushort.
Definition at line 560 of file block_ushort.hpp.
Referenced by gsl::block_ushort::const_iterator_t< reverse >::const_iterator_t(), gsl::block_ushort::iterator_base< container, content, reverse >::decrement(), gsl::block_ushort::iterator_base< container, content, reverse >::increment(), gsl::block_ushort::iterator_base< container, content, reverse >::operator*(), gsl::block_ushort::iterator_t< reverse >::operator-(), gsl::block_ushort::iterator_base< container, content, reverse >::operator-(), gsl::block_ushort::const_iterator_t< reverse >::operator-(), gsl::block_ushort::iterator_base< container, content, reverse >::operator->(), gsl::block_ushort::iterator_t< reverse >::operator<(), gsl::block_ushort::iterator_base< container, content, reverse >::operator<(), gsl::block_ushort::const_iterator_t< reverse >::operator<(), gsl::block_ushort::const_iterator_t< reverse >::operator=(), gsl::block_ushort::iterator_t< reverse >::operator=(), gsl::block_ushort::iterator_t< reverse >::operator==(), gsl::block_ushort::iterator_base< container, content, reverse >::operator==(), gsl::block_ushort::const_iterator_t< reverse >::operator==(), gsl::block_ushort::iterator_base< container, content, reverse >::operator[](), and gsl::block_ushort::iterator_base< container, content, reverse >::shift().
|
protected |
Store a pointer to a block_ushort we can iterate over: 0 if no block_ushort.
Definition at line 556 of file block_ushort.hpp.
Referenced by gsl::block_ushort::const_iterator_t< reverse >::const_iterator_t(), gsl::block_ushort::iterator_base< container, content, reverse >::decrement(), gsl::block_ushort::iterator_base< container, content, reverse >::increment(), gsl::block_ushort::iterator_base< container, content, reverse >::iterator_base(), gsl::block_ushort::iterator_base< container, content, reverse >::operator*(), gsl::block_ushort::iterator_t< reverse >::operator-(), gsl::block_ushort::iterator_base< container, content, reverse >::operator-(), gsl::block_ushort::const_iterator_t< reverse >::operator-(), gsl::block_ushort::iterator_base< container, content, reverse >::operator->(), gsl::block_ushort::iterator_t< reverse >::operator<(), gsl::block_ushort::iterator_base< container, content, reverse >::operator<(), gsl::block_ushort::const_iterator_t< reverse >::operator<(), gsl::block_ushort::const_iterator_t< reverse >::operator=(), gsl::block_ushort::iterator_t< reverse >::operator=(), gsl::block_ushort::iterator_t< reverse >::operator==(), gsl::block_ushort::iterator_base< container, content, reverse >::operator==(), gsl::block_ushort::const_iterator_t< reverse >::operator==(), gsl::block_ushort::iterator_base< container, content, reverse >::operator[](), and gsl::block_ushort::iterator_base< container, content, reverse >::shift().