Audacity 3.2.0
Public Types | Public Member Functions | List of all members
TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::Combine< Fs, Wrapped >::CombineOp< BaseClass, NextBase >::Opaque Struct Reference

#include <TypeSwitch.h>

Public Types

enum  : unsigned { SetUsed = 1u }
 Constant used in a compile-time check. More...
 

Public Member Functions

operator() (BaseClass &object, const Functions &functions, Args &&... args) const
 Ignore the remaining functions and call the first only. More...
 

Detailed Description

template<typename R, typename ArgumentTypes, typename Funs, typename... Args>
template<typename Fs, typename Wrapped>
template<typename BaseClass, typename NextBase>
struct TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::Combine< Fs, Wrapped >::CombineOp< BaseClass, NextBase >::Opaque

Generates operator () that calls one function only, shadowing those taking less derived base classes

Definition at line 83 of file TypeSwitch.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename R , typename ArgumentTypes , typename Funs , typename... Args>
template<typename Fs , typename Wrapped >
template<typename BaseClass , typename NextBase >
anonymous enum : unsigned

Constant used in a compile-time check.

Enumerator
SetUsed 

Definition at line 85 of file TypeSwitch.h.

Member Function Documentation

◆ operator()()

template<typename R , typename ArgumentTypes , typename Funs , typename... Args>
template<typename Fs , typename Wrapped >
template<typename BaseClass , typename NextBase >
R TypeSwitch::detail::Executor< R, ArgumentTypes, Funs, Args >::Combine< Fs, Wrapped >::CombineOp< BaseClass, NextBase >::Opaque::operator() ( BaseClass &  object,
const Functions functions,
Args &&...  args 
) const
inline

Ignore the remaining functions and call the first only.

Definition at line 88 of file TypeSwitch.h.

90 {
91 return std::get<0>(functions)(
92 object, std::forward<Args>(args)...);
93 }

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