A library for working with phylogenetic and population genetic data.
v0.32.0
Range< IteratorType > Class Template Reference

#include <genesis/utils/containers/range.hpp>

Detailed Description

template<typename IteratorType>
class genesis::utils::Range< IteratorType >

Simple wrapper for typical begin() and end() iterators, to be used in range-based for loops.

Definition at line 46 of file range.hpp.

Public Member Functions

 Range ()=default
 
template<class Container >
 Range (Container &cont)
 
template<class Container >
 Range (Container const &cont)
 
 Range (iterator begin, iterator end)
 
 Range (Range &&)=default
 
 Range (Range const &)=default
 
 ~Range ()=default
 
iterator begin ()
 
iterator end ()
 
Rangeoperator= (Range &&)=default
 
Rangeoperator= (Range const &)=default
 

Public Types

using iterator = IteratorType
 

Constructor & Destructor Documentation

◆ Range() [1/6]

Range ( )
default

◆ Range() [2/6]

Range ( Container &  cont)
inline

Definition at line 63 of file range.hpp.

◆ Range() [3/6]

Range ( Container const &  cont)
inline

Definition at line 69 of file range.hpp.

◆ Range() [4/6]

Range ( iterator  begin,
iterator  end 
)
inline

Definition at line 74 of file range.hpp.

◆ Range() [5/6]

Range ( Range< IteratorType > const &  )
default

◆ Range() [6/6]

Range ( Range< IteratorType > &&  )
default

◆ ~Range()

~Range ( )
default

Member Function Documentation

◆ begin()

iterator begin ( )
inline

Definition at line 91 of file range.hpp.

◆ end()

iterator end ( )
inline

Definition at line 96 of file range.hpp.

◆ operator=() [1/2]

Range& operator= ( Range< IteratorType > &&  )
default

◆ operator=() [2/2]

Range& operator= ( Range< IteratorType > const &  )
default

Member Typedef Documentation

◆ iterator

using iterator = IteratorType

Definition at line 54 of file range.hpp.


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