23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_DATASET_CONTAINER
25 #define ARM_COMPUTE_TEST_DATASET_CONTAINER
32 #include <type_traits>
51 template <
typename V,
typename A>
61 using container_value_type =
typename T::value_type;
62 using container_const_iterator =
typename T::const_iterator;
81 using type = std::tuple<container_value_type>;
103 return _name +
"=" +
to_string(*_iterator);
112 return std::make_tuple(*_iterator);
127 container_const_iterator _iterator;
145 return _container.size();
159 template <
typename T>
std::string to_string(T &&value)
Convert integer and float values to string.
Abstract implementation of a named dataset.
decltype(strategy::transforms) typedef type
ContainerDataset(std::string name, T &&container)
Construct dataset with given name and values from the container.
std::string to_string(DatasetMode mode)
std::string name() const
Return name of the dataset.
int size() const
Size of the dataset.
iterator & operator++()
Increment the iterator.
Implementation of a dataset created from a container.
std::tuple< container_value_type > type
Type of the dataset.
ContainerDataset::type operator*() const
Get 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.
Iterator for the dataset.
std::string description() const
Get a description of the current value.
Copyright (c) 2017-2023 Arm Limited.
iterator(std::string name, container_const_iterator iterator)
Construct iterator.
iterator begin() const
Iterator pointing at the begin of the dataset.