A library for working with phylogenetic and population genetic data.
v0.32.0
MatrixRow< MT, T >::Iterator Class Reference

#include <genesis/utils/containers/matrix/row.hpp>

Detailed Description

template<typename MT, typename T>
class genesis::utils::MatrixRow< MT, T >::Iterator

Random access iterator into a Matrix row.

Definition at line 98 of file row.hpp.

Public Member Functions

 Iterator (Iterator &&)=default
 
 Iterator (Iterator const &)=default
 
 ~Iterator ()=default
 
bool operator!= (self_type const &other) const
 
value_typeoperator* () const
 
self_type operator++ ()
 
self_type operator++ (int)
 
self_type operator+= (difference_type n)
 
difference_type operator- (self_type const &other) const
 
self_type operator-- ()
 
self_type operator-- (int)
 
self_type operator-= (difference_type n)
 
value_typeoperator-> () const
 
bool operator< (self_type const &other) const
 
bool operator<= (self_type const &other) const
 
Iteratoroperator= (Iterator &&)=default
 
Iteratoroperator= (Iterator const &)=default
 
bool operator== (self_type const &other) const
 
bool operator> (self_type const &other) const
 
bool operator>= (self_type const &other) const
 
value_typeoperator[] (difference_type n) const
 
void swap (self_type &other)
 

Public Types

using difference_type = ptrdiff_t
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = T *
 
using reference = T &
 
using self_type = MatrixRow< MT, T >::Iterator
 
using value_type = T
 

Friends

class MatrixRow
 
self_type operator+ (difference_type n, self_type const &it)
 
self_type operator+ (self_type const &it, difference_type n)
 
self_type operator- (self_type const &it, difference_type n)
 
void swap (self_type &lhs, self_type &rhs)
 

Constructor & Destructor Documentation

◆ ~Iterator()

~Iterator ( )
default

◆ Iterator() [1/2]

Iterator ( Iterator const &  )
default

◆ Iterator() [2/2]

Iterator ( Iterator &&  )
default

Member Function Documentation

◆ operator!=()

bool operator!= ( self_type const &  other) const
inline

Definition at line 220 of file row.hpp.

◆ operator*()

value_type& operator* ( ) const
inline

Definition at line 147 of file row.hpp.

◆ operator++() [1/2]

self_type operator++ ( )
inline

Definition at line 157 of file row.hpp.

◆ operator++() [2/2]

self_type operator++ ( int  )
inline

Definition at line 163 of file row.hpp.

◆ operator+=()

self_type operator+= ( difference_type  n)
inline

Definition at line 183 of file row.hpp.

◆ operator-()

difference_type operator- ( self_type const &  other) const
inline

Definition at line 210 of file row.hpp.

◆ operator--() [1/2]

self_type operator-- ( )
inline

Definition at line 170 of file row.hpp.

◆ operator--() [2/2]

self_type operator-- ( int  )
inline

Definition at line 176 of file row.hpp.

◆ operator-=()

self_type operator-= ( difference_type  n)
inline

Definition at line 189 of file row.hpp.

◆ operator->()

value_type* operator-> ( ) const
inline

Definition at line 152 of file row.hpp.

◆ operator<()

bool operator< ( self_type const &  other) const
inline

Definition at line 225 of file row.hpp.

◆ operator<=()

bool operator<= ( self_type const &  other) const
inline

Definition at line 230 of file row.hpp.

◆ operator=() [1/2]

Iterator& operator= ( Iterator &&  )
default

◆ operator=() [2/2]

Iterator& operator= ( Iterator const &  )
default

◆ operator==()

bool operator== ( self_type const &  other) const
inline

Definition at line 215 of file row.hpp.

◆ operator>()

bool operator> ( self_type const &  other) const
inline

Definition at line 235 of file row.hpp.

◆ operator>=()

bool operator>= ( self_type const &  other) const
inline

Definition at line 240 of file row.hpp.

◆ operator[]()

value_type& operator[] ( difference_type  n) const
inline

Definition at line 142 of file row.hpp.

◆ swap()

void swap ( self_type other)
inline

Definition at line 245 of file row.hpp.

Friends And Related Function Documentation

◆ MatrixRow

friend class MatrixRow
friend

Definition at line 120 of file row.hpp.

◆ operator+ [1/2]

self_type operator+ ( difference_type  n,
self_type const &  it 
)
friend

Definition at line 195 of file row.hpp.

◆ operator+ [2/2]

self_type operator+ ( self_type const &  it,
difference_type  n 
)
friend

Definition at line 200 of file row.hpp.

◆ operator-

self_type operator- ( self_type const &  it,
difference_type  n 
)
friend

Definition at line 205 of file row.hpp.

◆ swap

void swap ( self_type lhs,
self_type rhs 
)
friend

Definition at line 253 of file row.hpp.

Member Typedef Documentation

◆ difference_type

using difference_type = ptrdiff_t

Definition at line 112 of file row.hpp.

◆ iterator_category

using iterator_category = std::random_access_iterator_tag

Definition at line 106 of file row.hpp.

◆ pointer

using pointer = T*

Definition at line 110 of file row.hpp.

◆ reference

using reference = T&

Definition at line 111 of file row.hpp.

◆ self_type

using self_type = MatrixRow<MT, T>::Iterator

Definition at line 107 of file row.hpp.

◆ value_type

using value_type = T

Definition at line 109 of file row.hpp.


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