|  | Audacity 3.2.0
    | 
Parameterize for the type of visitor return. More...
| Classes | |
| struct | CopyOnly | 
| struct | X | 
| struct | Y | 
| Structure can specialize with only a non-const member function.  More... | |
| struct | Z | 
| Structure always with a const member function.  More... | |
| Public Types | |
| template<typename T > | |
| using | MaybeConst = std::conditional_t< Const, const T, T > | 
| using | ResultType = std::conditional_t< ref==noref, MaybeConst< ValueType >, std::conditional_t< ref==rvalue, std::add_rvalue_reference_t< MaybeConst< ValueType > >, std::add_lvalue_reference_t< MaybeConst< ValueType > > > > | 
| using | VariantType = std::conditional_t< ref==lvalue, std::variant< MaybeConst< X >, MaybeConst< Y >, MaybeConst< Z >, MaybeConst< float >, MaybeConst< double >, MaybeConst< long double > >, std::variant< MaybeConst< Y >, MaybeConst< Z >, MaybeConst< float >, MaybeConst< double >, MaybeConst< long double > > > | 
| Public Member Functions | |
| void | DoTests () | 
| Static Public Member Functions | |
| template<int Value> | |
| static ResultType | value () | 
| static ResultType | nakedFunction (float) | 
| static auto | moveOnly () | 
| template<typename Visitor , typename Arg > | |
| static void | testCase (const Visitor &visitor, int result, Arg &arg) | 
Parameterize for the type of visitor return.
Definition at line 29 of file VariantTest.cpp.
| using Tester< Const, ref >::MaybeConst = std::conditional_t<Const, const T, T> | 
Definition at line 32 of file VariantTest.cpp.
| using Tester< Const, ref >::ResultType = std::conditional_t<ref == noref, MaybeConst<ValueType>, std::conditional_t<ref == rvalue, std::add_rvalue_reference_t<MaybeConst<ValueType> >, std::add_lvalue_reference_t<MaybeConst<ValueType> > > > | 
Definition at line 34 of file VariantTest.cpp.
| using Tester< Const, ref >::VariantType = std::conditional_t<ref == lvalue, std::variant< MaybeConst<X>, MaybeConst<Y>, MaybeConst<Z>, MaybeConst<float>, MaybeConst<double>, MaybeConst<long double> >, std::variant< MaybeConst<Y>, MaybeConst<Z>, MaybeConst<float>, MaybeConst<double>, MaybeConst<long double> > > | 
Definition at line 88 of file VariantTest.cpp.
Definition at line 133 of file VariantTest.cpp.
References Tester< Const, ref >::Z::constmemberfunction(), lvalue, Tester< Const, ref >::X::member, Tester< Const, ref >::moveOnly(), Tester< Const, ref >::nakedFunction(), Callable::OverloadSet(), and Tester< Const, ref >::testCase().
Referenced by TEST_CASE().
Definition at line 66 of file VariantTest.cpp.
Referenced by Tester< Const, ref >::DoTests().
| 
 | inlinestatic | 
Definition at line 65 of file VariantTest.cpp.
Referenced by Tester< Const, ref >::DoTests().
| 
 | inlinestatic | 
Definition at line 108 of file VariantTest.cpp.
References lvalue, and MenuRegistry::Visit().
Referenced by Tester< Const, ref >::DoTests().
| 
 | inlinestatic | 
Definition at line 43 of file VariantTest.cpp.
References rvalue.