Xrtti::Method Class Reference

#include <Xrtti.h>

Inheritance diagram for Xrtti::Method:

Xrtti::Member List of all members.

Public Member Functions

bool IsConst () const
bool IsVirtual () const
bool IsPureVirtual () const
const MethodSignatureGetSignature () const
const char * GetArgumentName (U32 index) const
void Invoke (void *pInstance, Value &returnValue, Value *pArgumentValues) const

Detailed Description

************************************************************************** Method represents a C++ method.


Member Function Documentation

bool Xrtti::Method::IsConst  )  const [inline]
 

Returns true if the method is const, false if it is not.

Returns:
true if the method is const, false if it is not.

bool Xrtti::Method::IsVirtual  )  const [inline]
 

Returns true if the method is virtual, false if it is concrete.

Returns:
true if the method is virtual, false if it is concrete.

bool Xrtti::Method::IsPureVirtual  )  const [inline]
 

Returns true if the method is pure virtual, false if it is not.

Returns:
true if the method is pure virtual, false if it is not.

const MethodSignature& Xrtti::Method::GetSignature  )  const [inline]
 

Returns an object describing the signature of this method.

Returns:
an object describing the signature of this method.

const char* Xrtti::Method::GetArgumentName U32  index  )  const [inline]
 

Additionally, a Method gives names to its arguments. This returns the name of argument at index [index].

Returns:
the name of argument at index [index]

void Xrtti::Method::Invoke void *  pInstance,
Value returnValue,
Value pArgumentValues
const [inline]
 

Invokes this method on an instance of the class represented by the Class containing this Method. It is an error to attempt to invoke a pure virtual method. This method has no effect if the containing Structure is anonymous, since methods cannot be called on anonymous structures.

Parameters:
pInstance is the instance of the class to invoke this method on
returnValue will return the return value resulting from the invocation of the method. If the method has no return value, then this argument is ignored. The specific union member which will be set is the one whose value is the same type as the return value of the method. If the return value is a pointer, then it is pointer_v which is set.
pArgumentValues is an array of Values holding the arguments to this method. The specific union member which will be used is the one whose value is the same type as the argument value of the method. The number of elements in pArgumentValues must match the number of arguments to this method.


The documentation for this class was generated from the following file:
Generated on Fri May 4 11:55:14 2007 by  doxygen 1.4.6