osgIntrospection::StaticMethodInfo0< C, R > Class Template Reference

Class templates StaticMethodInfoN (where 0 <= N <= 16) are concrete implementations of MethodInfo. More...

Inheritance diagram for osgIntrospection::StaticMethodInfo0< C, R >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef R(* FunctionType )()

Public Member Functions

 StaticMethodInfo0 (const std::string &qname, FunctionType f, const ParameterInfoList &plist, std::string briefHelp=std::string(), std::string detailedHelp=std::string())
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 (ValueList &) const
 Invokes the reflected static method dynamically passing it the arguments as a list of Value objects.


Detailed Description

template<typename C, typename R>
class osgIntrospection::StaticMethodInfo0< C, R >

Class templates StaticMethodInfoN (where 0 <= N <= 16) are concrete implementations of MethodInfo.

They are used to keep information about static class methods and to provide the means for calling them dynamically. Each class template can handle methods with N arguments and is parametrized by the class that declares the method and by the return type. Both const and non-const methods are supported. The invoke() methods allow to call the reflected method dynamically, passing it the arguments as a list of Value objects.


Member Typedef Documentation

template<typename C, typename R>
typedef R(* osgIntrospection::StaticMethodInfo0< C, R >::FunctionType)()


Constructor & Destructor Documentation

template<typename C, typename R>
osgIntrospection::StaticMethodInfo0< C, R >::StaticMethodInfo0 ( const std::string &  qname,
FunctionType  f,
const ParameterInfoList plist,
std::string  briefHelp = std::string(),
std::string  detailedHelp = std::string() 
) [inline]


Member Function Documentation

template<typename C, typename R>
bool osgIntrospection::StaticMethodInfo0< C, R >::isConst (  )  const [inline, virtual]

Returns whether the reflected method is const or not.

Implements osgIntrospection::MethodInfo.

template<typename C, typename R>
bool osgIntrospection::StaticMethodInfo0< C, R >::isStatic (  )  const [inline, virtual]

Returns whether the reflected method is static or not.

Implements osgIntrospection::MethodInfo.

template<typename C, typename R>
Value osgIntrospection::StaticMethodInfo0< C, R >::invoke ( ValueList args  )  const [inline, virtual]

Invokes the reflected static method dynamically passing it the arguments as a list of Value objects.

Reimplemented from osgIntrospection::MethodInfo.


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:29 2007 for the OpenSceneGraph by doxygen 1.5.3.