|  | Audacity 3.2.0
    | 
Global function-valued variable, adding a convenient Call() More...
#include <GlobalVariable.h>
| Classes | |
| struct | SubstituteInShared | 
| Can generate overriding hooks of shared_ptr factories.  More... | |
| struct | SubstituteInUnique | 
| Can generate overriding hooks of unique_ptr factories.  More... | |
| Public Types | |
| using | result_type = typename std::function< Signature >::result_type | 
| using | Scope = typename GlobalVariable< Tag, const std::function< Signature >, Default, Options... >::Scope | 
|  Public Types inherited from GlobalVariable< Tag, const std::function< Signature >, nullptr, Options... > | |
| using | variable_type = GlobalVariable | 
| using | stored_type = const std::function< Signature > | 
| using | mutable_type = std::remove_const_t< const std::function< Signature > > | 
| Static Public Member Functions | |
| template<typename... Arguments> | |
| 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< Signature >, nullptr, Options... > | |
| static stored_type & | Get () | 
| 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... | |
Global function-valued variable, adding a convenient Call()
Definition at line 155 of file GlobalVariable.h.
| using GlobalHook< Tag, Signature, Default, Options >::result_type = typename std::function<Signature>::result_type | 
Definition at line 160 of file GlobalVariable.h.
| using GlobalHook< Tag, Signature, Default, Options >::Scope = typename GlobalVariable<Tag, const std::function<Signature>, Default, Options... >::Scope | 
Definition at line 161 of file GlobalVariable.h.
| 
 | inlinestatic | 
Null check of the installed function is done for you.
Requires that the return type of the function is void or default-constructible
Definition at line 169 of file GlobalVariable.h.
References fn, and GlobalVariable< Tag, const std::function< Signature >, nullptr, Options... >::Get().