OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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

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

Iterator to beginning of Cartesian product.

Definition at line 187 of file CartesianProduct.h.

References CartesianProduct< T >::t_.

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.

References CartesianProduct< T >::t_.

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

Member Data Documentation

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

Definition at line 195 of file CartesianProduct.h.

Referenced by CartesianProduct< T >::begin(), and CartesianProduct< T >::end().


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