23.11
|
Implementation of a dataset representing all combinations of values of the input datasets. More...
#include <CartesianProductDataset.h>
Data Structures | |
struct | iterator |
Iterator for the dataset. More... | |
Public Types | |
using | type = decltype(std::tuple_cat(*std::declval< iter1_type >(), *std::declval< iter2_type >())) |
Type of the dataset. More... | |
Public Member Functions | |
CartesianProductDataset (T &&dataset1, U &&dataset2) | |
Construct dataset from the given datasets. More... | |
CartesianProductDataset (CartesianProductDataset &&)=default | |
Allow instances of this class to be move constructed. More... | |
iterator | begin () const |
Iterator pointing at the begin of the dataset. More... | |
int | size () const |
Size of the dataset. More... | |
![]() | |
Dataset (Dataset &&)=default | |
Allow instances of this class to be move constructed. More... | |
Implementation of a dataset representing all combinations of values of the input datasets.
For example, for the inputs {1, 2} and {3, 4} this dataset virtually represents the values {(1, 3), (1, 4), (2, 3), (2, 4)}.
Definition at line 47 of file CartesianProductDataset.h.
using type = decltype(std::tuple_cat(*std::declval<iter1_type>(), *std::declval<iter2_type>())) |
Type of the dataset.
Definition at line 71 of file CartesianProductDataset.h.
|
inline |
Construct dataset from the given datasets.
[in] | dataset1 | First dataset. |
[in] | dataset2 | Second dataset. |
Definition at line 61 of file CartesianProductDataset.h.
|
default |
Allow instances of this class to be move constructed.
|
inline |
Iterator pointing at the begin of the dataset.
Definition at line 153 of file CartesianProductDataset.h.
|
inline |
Size of the dataset.
Definition at line 162 of file CartesianProductDataset.h.
Referenced by CartesianProductDataset< T, U >::iterator::operator++().