Audacity 3.2.0
List of all members
DefaultedGlobalHook< Tag, DefaultFunction, Options > Class Template Reference

#include <GlobalVariable.h>

Inheritance diagram for DefaultedGlobalHook< Tag, DefaultFunction, Options >:
[legend]
Collaboration diagram for DefaultedGlobalHook< Tag, DefaultFunction, Options >:
[legend]

Additional Inherited Members

- Public Types inherited from GlobalHook< Tag, std::remove_pointer_t< decltype(DefaultFunction)>, DefaultFunction, Options... >
using result_type = typename std::function< std::remove_pointer_t< decltype(DefaultFunction)> >::result_type
 
using Scope = typename GlobalVariable< Tag, const std::function< std::remove_pointer_t< decltype(DefaultFunction)> >, Default, Options... >::Scope
 
- Public Types inherited from GlobalVariable< Tag, const std::function< std::remove_pointer_t< decltype(DefaultFunction)> >, Default, Options... >
using variable_type = GlobalVariable
 
using stored_type = const std::function< std::remove_pointer_t< decltype(DefaultFunction)> >
 
using mutable_type = std::remove_const_t< const std::function< std::remove_pointer_t< decltype(DefaultFunction)> > >
 
- Static Public Member Functions inherited from GlobalHook< Tag, std::remove_pointer_t< decltype(DefaultFunction)>, DefaultFunction, Options... >
static result_type Call (Arguments &&...arguments)
 Null check of the installed function is done for you. More...
 
- Static Public Member Functions inherited from GlobalVariable< Tag, const std::function< std::remove_pointer_t< decltype(DefaultFunction)> >, Default, Options... >
static stored_typeGet ()
 Get the installed value. More...
 
static auto Set (std::conditional_t< ScopedOnly, dummy, mutable_type > replacement) -> std::conditional_t< ScopedOnly, void, mutable_type >
 Move in a new value, move out and return the previous. More...
 

Detailed Description

template<typename Tag, auto DefaultFunction, auto... Options>
class DefaultedGlobalHook< Tag, DefaultFunction, Options >

Global function-valued variable, with a default implementation given, and adding a convenient Call()

Template Parameters
DefaultFunctionnames a function or static member function

Definition at line 205 of file GlobalVariable.h.


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