rcolyer.net
RC Lib  Version 201607061602
Public Member Functions | List of all members
RC::DynCaller Class Reference

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.
 

Detailed Description

A typeless container for a Caller, which has methods for dynamically casting it to the correct type.


The documentation for this class was generated from the following file:
email address
— (c) 2015