Audacity 3.2.0
|
For defining overrides of the method. More...
#include <AttachedVirtualFunction.h>
Public Types | |
using | Object = Subclass |
Shadowing Overridden::Object. More... | |
using | Function = std::function< Return(Object &, Arguments...) > |
Shadowing Overridden::Function, giving the first argument a more specific type. More... | |
Public Types inherited from AttachedVirtualFunction< Tag, Return, This, Arguments > | |
using | Object = This |
This member name is declared in this class template and redeclared in each override. More... | |
using | Function = std::function< Return(Object &, Arguments...) > |
This member name is declared in this class template and redeclared in each override. More... | |
Public Member Functions | |
Override () | |
At least one static instance must be created; more instances are harmless. More... | |
Public Member Functions inherited from AttachedVirtualFunction< Tag, Return, This, Arguments > | |
AttachedVirtualFunction () | |
At least one static instance must be created; more instances are harmless. More... | |
Static Public Member Functions | |
static Function | Implementation () |
A function returning a std::function that must be defined so that the program links. More... | |
static Return | Callthrough (typename Overridden::Object &object, Arguments &&...arguments) |
May be used in the body of the overriding function, defining it in terms of the overridden one. More... | |
Static Public Member Functions inherited from AttachedVirtualFunction< Tag, Return, This, Arguments > | |
static Function | Implementation () |
A function returning a std::function, which you must define so that the program links. More... | |
static Return | Call (This &obj, Arguments ...arguments) |
Invoke the method – but only after static initialization time. More... | |
For defining overrides of the method.
Subclass | the more specific subclass of This |
Overridden | The immediately overridden version, defaulting to the base version |
Definition at line 183 of file AttachedVirtualFunction.h.
using AttachedVirtualFunction< Tag, Return, This, Arguments >::Override< Subclass, Overridden >::Function = std::function< Return( Object&, Arguments... ) > |
Shadowing Overridden::Function, giving the first argument a more specific type.
Definition at line 188 of file AttachedVirtualFunction.h.
using AttachedVirtualFunction< Tag, Return, This, Arguments >::Override< Subclass, Overridden >::Object = Subclass |
Shadowing Overridden::Object.
Definition at line 186 of file AttachedVirtualFunction.h.
|
inline |
At least one static instance must be created; more instances are harmless.
(There will be others if there are any further overrides.)
Definition at line 207 of file AttachedVirtualFunction.h.
References flag, and AttachedVirtualFunction< Tag, Return, This, Arguments >::Override< Subclass, Overridden >::Implementation().
|
inlinestatic |
May be used in the body of the overriding function, defining it in terms of the overridden one.
Definition at line 199 of file AttachedVirtualFunction.h.
|
static |
A function returning a std::function that must be defined so that the program links.
Referenced by AttachedVirtualFunction< Tag, Return, This, Arguments >::Override< Subclass, Overridden >::Override().