autoppl  v0.8
A C++ template library for probabilistic programming
ppl::util::range< Iter > Struct Template Reference

#include <range.hpp>

Public Types

using iter_t = Iter
 

Public Member Functions

 range (iter_t begin, iter_t end)
 
auto & operator() (size_t i)
 
const auto & operator() (size_t i) const
 
iter_t begin ()
 
const iter_t begin () const
 
iter_t end ()
 
const iter_t end () const
 
size_t size () const
 
void bind (iter_t begin, iter_t end)
 

Detailed Description

template<class Iter>
struct ppl::util::range< Iter >

Small class to view a range of elements.

Member Typedef Documentation

◆ iter_t

template<class Iter >
using ppl::util::range< Iter >::iter_t = Iter

Constructor & Destructor Documentation

◆ range()

template<class Iter >
ppl::util::range< Iter >::range ( iter_t  begin,
iter_t  end 
)
inline

Member Function Documentation

◆ begin() [1/2]

template<class Iter >
iter_t ppl::util::range< Iter >::begin ( )
inline

◆ begin() [2/2]

template<class Iter >
const iter_t ppl::util::range< Iter >::begin ( ) const
inline

◆ bind()

template<class Iter >
void ppl::util::range< Iter >::bind ( iter_t  begin,
iter_t  end 
)
inline

◆ end() [1/2]

template<class Iter >
iter_t ppl::util::range< Iter >::end ( )
inline

◆ end() [2/2]

template<class Iter >
const iter_t ppl::util::range< Iter >::end ( ) const
inline

◆ operator()() [1/2]

template<class Iter >
auto& ppl::util::range< Iter >::operator() ( size_t  i)
inline

◆ operator()() [2/2]

template<class Iter >
const auto& ppl::util::range< Iter >::operator() ( size_t  i) const
inline

◆ size()

template<class Iter >
size_t ppl::util::range< Iter >::size ( ) const
inline

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