24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_DATASET_RANGE
25 #define ARM_COMPUTE_TEST_DATASET_RANGE
32 #include <type_traits>
67 using type = std::tuple<T>;
79 : _name{
name }, _value{ start }, _step{
step }
99 return std::make_tuple(_value);
133 return (_end - _start) / std::abs(_step);
151 template <
typename T>
std::string to_string(T &&value)
Convert integer and float values to string.
int size() const
Size of the dataset.
Abstract implementation of a named dataset.
std::tuple< T > type
Type of the dataset.
RangeDataset::type operator*() const
Get the value of the iterator.
std::string to_string(DatasetMode mode)
std::string name() const
Return name of the dataset.
iterator(std::string name, T start, T step)
Construct an iterator.
iterator & operator++()
Inrement the iterator.
Iterator for the dataset.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Copyright (c) 2017-2024 Arm Limited.
Implementation of a dataset created from a range of values.
void end(TokenStream &in, bool &valid)
iterator begin() const
Iterator pointing at the begin of the dataset.
RangeDataset(std::string name, T start, T end, T step=1)
Construct dataset with given name and values in the specified range.
std::string description() const
Get the description of the current value.