A typeless container for a Caller, which has methods for dynamically casting it to the correct type. More...
#include <Caller.h>
Public Member Functions | |
| DynCaller () | |
| Default constructor, contains no Caller. | |
| template<class... Types> | |
| DynCaller (Caller< Types... > new_caller) | |
| Construct a DynCaller which wraps new_caller. | |
| template<class Ret , class... Params> | |
| DynCaller (Ret(*func)(Params...)) | |
| Creates a Caller referring to the given static function, and then wraps it. | |
| template<class... Types> | |
| Caller< Types... > & | As () |
| Dynamically casts to the Caller of the specified template parameters, or throws ErrorMsgCast if it fails. | |
| template<class... Types> | |
| const Caller< Types... > & | As () const |
| Const version of As(). | |
| template<class... Types> | |
| bool | CanCast () const |
| True if this can cast to a Caller with the specified template parameters. | |
A typeless container for a Caller, which has methods for dynamically casting it to the correct type.
1.9.1