Inheritance diagram for osgIntrospection::TypedMethodInfo0< C, R >:
Public Types | |
typedef R(C::*) | ConstFunctionType () const |
typedef R(C::*) | FunctionType () |
Public Member Functions | |
TypedMethodInfo0 (const std::string &qname, ConstFunctionType cf, const ParameterInfoList &plist) | |
TypedMethodInfo0 (const std::string &qname, FunctionType f, const ParameterInfoList &plist) | |
bool | isConst () const |
Returns whether the reflected method is const or not. | |
bool | isStatic () const |
Returns whether the reflected method is static or not. | |
Value | invoke (const Value &instance, ValueList &) const |
Value | invoke (Value &instance, ValueList &) const |
Static Public Member Functions | |
static TypedMethodInfo0 * | constMethod (const std::string &qname, ConstFunctionType cf, const ParameterInfoList &plist) |
static TypedMethodInfo0 * | nonConstMethod (const std::string &qname, FunctionType f, const ParameterInfoList &plist) |
NOTE: currently, variant_cast<> does not check pointer conversions, it simply converts one pointer into another even if they point to types that are completely unrelated. This means you won't probably get any exceptions if you try to call a class' method on another class' instance, but of course that's a bad, bad idea...
typedef R(C::*) osgIntrospection::TypedMethodInfo0< C, R >::ConstFunctionType() const |
typedef R(C::*) osgIntrospection::TypedMethodInfo0< C, R >::FunctionType() |
osgIntrospection::TypedMethodInfo0< C, R >::TypedMethodInfo0 | ( | const std::string & | qname, | |
ConstFunctionType | cf, | |||
const ParameterInfoList & | plist | |||
) | [inline] |
osgIntrospection::TypedMethodInfo0< C, R >::TypedMethodInfo0 | ( | const std::string & | qname, | |
FunctionType | f, | |||
const ParameterInfoList & | plist | |||
) | [inline] |
static TypedMethodInfo0* osgIntrospection::TypedMethodInfo0< C, R >::constMethod | ( | const std::string & | qname, | |
ConstFunctionType | cf, | |||
const ParameterInfoList & | plist | |||
) | [inline, static] |
Value osgIntrospection::TypedMethodInfo0< C, R >::invoke | ( | Value & | instance, | |
ValueList & | ||||
) | const [inline, virtual] |
Invokes the reflected method dynamically on the given instance, passing it the arguments as a list of Value objects.
Reimplemented from osgIntrospection::MethodInfo.
Value osgIntrospection::TypedMethodInfo0< C, R >::invoke | ( | const Value & | instance, | |
ValueList & | ||||
) | const [inline, virtual] |
Invokes the reflected method dynamically on the given const instance, passing it the arguments as a list of Value objects.
Reimplemented from osgIntrospection::MethodInfo.
bool osgIntrospection::TypedMethodInfo0< C, R >::isConst | ( | ) | const [inline, virtual] |
bool osgIntrospection::TypedMethodInfo0< C, R >::isStatic | ( | ) | const [inline, virtual] |
static TypedMethodInfo0* osgIntrospection::TypedMethodInfo0< C, R >::nonConstMethod | ( | const std::string & | qname, | |
FunctionType | f, | |||
const ParameterInfoList & | plist | |||
) | [inline, static] |