A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MatrixCol< MT, T >::Iterator Class Reference

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

Detailed Description

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

Random access iterator into a Matrix column.

Definition at line 98 of file col.hpp.

Public Member Functions

 Iterator (Iterator const &)=default
 
 Iterator (Iterator &&)=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 const &)=default
 
Iteratoroperator= (Iterator &&)=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 = MatrixCol< MT, T >::Iterator
 
using value_type = T
 

Friends

class MatrixCol
 
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 ( )
default
Iterator ( Iterator const &  )
default
Iterator ( Iterator &&  )
default

Member Function Documentation

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

Definition at line 220 of file col.hpp.

value_type& operator* ( ) const
inline

Definition at line 147 of file col.hpp.

self_type operator++ ( )
inline

Definition at line 157 of file col.hpp.

self_type operator++ ( int  )
inline

Definition at line 163 of file col.hpp.

self_type operator+= ( difference_type  n)
inline

Definition at line 183 of file col.hpp.

difference_type operator- ( self_type const &  other) const
inline

Definition at line 210 of file col.hpp.

self_type operator-- ( )
inline

Definition at line 170 of file col.hpp.

self_type operator-- ( int  )
inline

Definition at line 176 of file col.hpp.

self_type operator-= ( difference_type  n)
inline

Definition at line 189 of file col.hpp.

value_type* operator-> ( ) const
inline

Definition at line 152 of file col.hpp.

bool operator< ( self_type const &  other) const
inline

Definition at line 225 of file col.hpp.

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

Definition at line 230 of file col.hpp.

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

Definition at line 215 of file col.hpp.

bool operator> ( self_type const &  other) const
inline

Definition at line 235 of file col.hpp.

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

Definition at line 240 of file col.hpp.

value_type& operator[] ( difference_type  n) const
inline

Definition at line 142 of file col.hpp.

void swap ( self_type other)
inline

Definition at line 245 of file col.hpp.

Friends And Related Function Documentation

friend class MatrixCol
friend

Definition at line 120 of file col.hpp.

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

Definition at line 195 of file col.hpp.

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

Definition at line 200 of file col.hpp.

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

Definition at line 205 of file col.hpp.

void swap ( self_type lhs,
self_type rhs 
)
friend

Definition at line 253 of file col.hpp.

Member Typedef Documentation

using difference_type = ptrdiff_t

Definition at line 112 of file col.hpp.

using iterator_category = std::random_access_iterator_tag

Definition at line 106 of file col.hpp.

using pointer = T*

Definition at line 110 of file col.hpp.

using reference = T&

Definition at line 111 of file col.hpp.

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

Definition at line 107 of file col.hpp.

using value_type = T

Definition at line 109 of file col.hpp.


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