Compute Library
 21.02
AbsoluteTolerance< T > Class Template Reference

Class reprensenting an absolute tolerance value. More...

#include <Validation.h>

Public Types

using value_type = T
 Underlying type. More...
 

Public Member Functions

 AbsoluteTolerance ()=default
 
constexpr AbsoluteTolerance (T value)
 Constructor. More...
 
constexpr operator T () const
 Implicit conversion to the underlying type. More...
 

Detailed Description

template<typename T>
class arm_compute::test::validation::AbsoluteTolerance< T >

Class reprensenting an absolute tolerance value.

Definition at line 50 of file Validation.h.

Member Typedef Documentation

◆ value_type

using value_type = T

Underlying type.

Definition at line 54 of file Validation.h.

Constructor & Destructor Documentation

◆ AbsoluteTolerance() [1/2]

AbsoluteTolerance ( )
default

◆ AbsoluteTolerance() [2/2]

constexpr AbsoluteTolerance ( value)
inlineexplicit

Constructor.

Parameters
[in]valueAbsolute tolerance value.

Definition at line 66 of file Validation.h.

67  : _value{ value }
68  {
69  }

Member Function Documentation

◆ operator T()

constexpr operator T ( ) const
inline

Implicit conversion to the underlying type.

Returns
the underlying type.

Definition at line 75 of file Validation.h.

76  {
77  return _value;
78  }

The documentation for this class was generated from the following file: