ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
gsl::matrix_char::const_iterator_t< reverse_t > Class Template Reference

A class template for the const iterators. More...

Inheritance diagram for gsl::matrix_char::const_iterator_t< reverse_t >:
Inheritance graph
Collaboration diagram for gsl::matrix_char::const_iterator_t< reverse_t >:
Collaboration graph

Public Member Functions

const_iterator_t< reverse_t > & operator= (const_iterator_t< reverse_t > const &i)
 We can assign one output iterator from another. More...
 
const_iterator_t< reverse_t > & operator++ ()
 The prefix ++ operator. More...
 
const_iterator_t< reverse_t > operator++ (int)
 The postfix ++ operator. More...
 
const_iterator_t< reverse_t > & operator-- ()
 The prefix – operator. More...
 
const_iterator_t< reverse_t > operator-- (int)
 The postfix – operator. More...
 
 const_iterator_t ()
 The default constructor. More...
 
 const_iterator_t (iterator_t< reverse_t > const &i)
 A copy constructor. More...
 
bool operator== (iterator_t< reverse_t > const &i) const
 Comparison with non-const iterator. More...
 
bool operator!= (iterator_t< reverse_t > const &i) const
 Comparison with non-const iterator. More...
 
bool operator== (const_iterator_t< reverse_t > const &i) const
 Comparison with const iterator. More...
 
bool operator!= (const_iterator_t< reverse_t > const &i) const
 Comparison with const iterator. More...
 
- Public Member Functions inherited from gsl::matrix_char::iterator_base< matrix_char const, vector_char const, reverse_t >
reference operator* () const
 Dereference the pointer. More...
 
pointer operator-> () const
 Dereference the pointer. More...
 
bool operator== (iterator_base< matrix_char const, vector_char const, reverse_t > const &i) const
 The == operator. More...
 
bool operator!= (iterator_base< matrix_char const, vector_char const, reverse_t > const &i) const
 The != operator. More...
 

Protected Member Functions

 const_iterator_t (matrix_char const *v, size_t position)
 This constructor allows vector_char to create non-default iterators. More...
 
- Protected Member Functions inherited from gsl::matrix_char::iterator_base< matrix_char const, vector_char const, reverse_t >
void increment ()
 Increment the iterator. More...
 
void decrement ()
 Decrement the iterator. More...
 
 iterator_base ()
 The iterator is default constructible. More...
 
 iterator_base (matrix_char const *v, size_t position)
 This constructor allows vector_char to create non-default iterators. More...
 

Friends

class matrix_char
 

Additional Inherited Members

- Public Types inherited from gsl::matrix_char::iterator_base< matrix_char const, vector_char const, reverse_t >
typedef std::bidirectional_iterator_tag iterator_category
 An iterator must have an iterator category. More...
 
typedef vector_char value_type
 An iterator must have a value type. More...
 
typedef vector_char_ptr pointer
 An iterator must have a pointer typea. More...
 
typedef value_type reference
 An iterator must have a reference type. More...
 
- Protected Attributes inherited from gsl::matrix_char::iterator_base< matrix_char const, vector_char const, reverse_t >
matrix_char const * v
 Store a pointer to a matrix_char we can iterate over: 0 if no matrix_char. More...
 
size_t position
 Mark position of iterator within matrix_char. More...
 

Detailed Description

template<bool reverse_t>
class gsl::matrix_char::const_iterator_t< reverse_t >

A class template for the const iterators.

Definition at line 496 of file matrix_char.hpp.

Constructor & Destructor Documentation

◆ const_iterator_t() [1/3]

template<bool reverse_t>
gsl::matrix_char::const_iterator_t< reverse_t >::const_iterator_t ( )
inline

The default constructor.

Definition at line 553 of file matrix_char.hpp.

◆ const_iterator_t() [2/3]

template<bool reverse_t>
gsl::matrix_char::const_iterator_t< reverse_t >::const_iterator_t ( iterator_t< reverse_t > const &  i)
inline

A copy constructor.

Parameters
iThe non-const iterator to copy

Definition at line 558 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::position, and gsl::matrix_char::iterator_base< container, content, reverse_t >::v.

◆ const_iterator_t() [3/3]

template<bool reverse_t>
gsl::matrix_char::const_iterator_t< reverse_t >::const_iterator_t ( matrix_char const *  v,
size_t  position 
)
inlineprotected

This constructor allows vector_char to create non-default iterators.

Parameters
vThe vector_char that creates this
positionThe initial postion of the iterator

Definition at line 602 of file matrix_char.hpp.

Member Function Documentation

◆ operator!=() [1/2]

template<bool reverse_t>
bool gsl::matrix_char::const_iterator_t< reverse_t >::operator!= ( const_iterator_t< reverse_t > const &  i) const
inline

Comparison with const iterator.

Parameters
ianother iterator
Returns
false or true according as this points to same element as i

Definition at line 591 of file matrix_char.hpp.

References gsl::matrix_char::const_iterator_t< reverse_t >::operator==().

◆ operator!=() [2/2]

template<bool reverse_t>
bool gsl::matrix_char::const_iterator_t< reverse_t >::operator!= ( iterator_t< reverse_t > const &  i) const
inline

Comparison with non-const iterator.

Parameters
ianother iterator
Returns
false or true according as this points to same element as i

Definition at line 575 of file matrix_char.hpp.

References gsl::matrix_char::const_iterator_t< reverse_t >::operator==().

◆ operator++() [1/2]

template<bool reverse_t>
const_iterator_t< reverse_t > & gsl::matrix_char::const_iterator_t< reverse_t >::operator++ ( )
inline

The prefix ++ operator.

Returns
this

Definition at line 516 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::increment().

◆ operator++() [2/2]

template<bool reverse_t>
const_iterator_t< reverse_t > gsl::matrix_char::const_iterator_t< reverse_t >::operator++ ( int  )
inline

The postfix ++ operator.

Returns
this

Definition at line 524 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::increment().

◆ operator--() [1/2]

template<bool reverse_t>
const_iterator_t< reverse_t > & gsl::matrix_char::const_iterator_t< reverse_t >::operator-- ( )
inline

The prefix – operator.

Returns
this

Definition at line 536 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::decrement().

◆ operator--() [2/2]

template<bool reverse_t>
const_iterator_t< reverse_t > gsl::matrix_char::const_iterator_t< reverse_t >::operator-- ( int  )
inline

The postfix – operator.

Returns
this

Definition at line 544 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::decrement().

◆ operator=()

template<bool reverse_t>
const_iterator_t< reverse_t > & gsl::matrix_char::const_iterator_t< reverse_t >::operator= ( const_iterator_t< reverse_t > const &  i)
inline

We can assign one output iterator from another.

Parameters
iThe iterator to copy

Definition at line 505 of file matrix_char.hpp.

References gsl::matrix_char::iterator_base< container, content, reverse_t >::position, and gsl::matrix_char::iterator_base< container, content, reverse_t >::v.

◆ operator==() [1/2]

template<bool reverse_t>
bool gsl::matrix_char::const_iterator_t< reverse_t >::operator== ( const_iterator_t< reverse_t > const &  i) const
inline

◆ operator==() [2/2]

template<bool reverse_t>
bool gsl::matrix_char::const_iterator_t< reverse_t >::operator== ( iterator_t< reverse_t > const &  i) const
inline

Friends And Related Function Documentation

◆ matrix_char

template<bool reverse_t>
friend class matrix_char
friend

Definition at line 596 of file matrix_char.hpp.


The documentation for this class was generated from the following file: