24 #ifndef ARM_COMPUTE_TEST_DATASET_LIST 25 #define ARM_COMPUTE_TEST_DATASET_LIST 30 #include <initializer_list> 49 using data_const_iterator =
typename std::vector<T>::const_iterator;
66 using type = std::tuple<T>;
77 : _name{ name }, _iterator{
iterator }
96 return std::make_tuple(*_iterator);
111 data_const_iterator _iterator;
133 std::vector<T> _data;
143 template <
typename T>
Abstract implementation of a named dataset.
iterator & operator++()
Increment the iterator.
std::string description() const
Get a description of the current value.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
std::tuple< T > type
Type of the dataset.
Copyright (c) 2017-2021 Arm Limited.
iterator begin() const
Iterator pointing at the begin of the dataset.
InitializerListDataset(std::string name, std::initializer_list< T > &&list)
Construct dataset with given name and values from the container.
int size() const
Size of the dataset.
InitializerListDataset::type operator*() const
Get the current value.
Implementation of a dataset created from an initializer list.
std::string to_string(const ICLTensor &arg)
iterator(std::string name, data_const_iterator iterator)
Construct an iterator for the dataset.
Iterator for the dataset.
std::string name() const
Return name of the dataset.