OmniSciDB  04ee39c94c
CartesianProduct< T > Class Template Reference

#include <CartesianProduct.h>

Public Member Functions

 CartesianProduct (T const &t)
 Constructor from type T. More...
 
CartesianProductIterator< T > begin () const
 Iterator to beginning of Cartesian product. More...
 
CartesianProductIterator< T > end () const
 Iterator behind the last element of the Cartesian product. More...
 

Private Attributes

T const & t_
 

Detailed Description

template<typename T>
class CartesianProduct< T >

Class that turns a forward iterable container of forward iterable containers into a forward iterable container which

Definition at line 181 of file CartesianProduct.h.

Constructor & Destructor Documentation

◆ CartesianProduct()

template<typename T>
CartesianProduct< T >::CartesianProduct ( T const &  t)
inlineexplicit

Constructor from type T.

Definition at line 184 of file CartesianProduct.h.

184 : t_(t) {}

Member Function Documentation

◆ begin()

template<typename T>
CartesianProductIterator<T> CartesianProduct< T >::begin ( ) const
inline

Iterator to beginning of Cartesian product.

Definition at line 187 of file CartesianProduct.h.

◆ end()

template<typename T>
CartesianProductIterator<T> CartesianProduct< T >::end ( ) const
inline

Iterator behind the last element of the Cartesian product.

Definition at line 190 of file CartesianProduct.h.

190  {
191  return CartesianProductIterator<T>(t_, std::numeric_limits<std::size_t>::max());
192  }

Member Data Documentation

◆ t_

template<typename T>
T const& CartesianProduct< T >::t_
private

Definition at line 195 of file CartesianProduct.h.


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