24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_DATASET_SINGLETON
25 #define ARM_COMPUTE_TEST_DATASET_SINGLETON
33 #include <type_traits>
63 using type = std::tuple<T>;
74 : _name{
name }, _value{ value }
106 return std::make_tuple(*_value);
152 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
Implementation of a dataset holding a single value.
std::string to_string(DatasetMode mode)
std::string name() const
Return name of the dataset.
iterator begin() const
Iterator pointing at the begin of the dataset.
int size() const
Size of the dataset.
SingletonDataset::type operator*() const
Get the value of the iterator.
~iterator()=default
Default destructor.
SingletonDataset(std::string name, T &&value)
Construct dataset with given name and value.
std::tuple< T > type
Type of the dataset.
iterator & operator=(const iterator &)=default
Allow instances of this class to be copied.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
std::string description() const
Get the description of the current value.
iterator & operator++()
Inrement the iterator.
Copyright (c) 2017-2024 Arm Limited.
iterator(std::string name, const T *value)
Construct an iterator.
Iterator for the dataset.