Xrtti::Constructor Class Reference

#include <Xrtti.h>

Inheritance diagram for Xrtti::Constructor:

Xrtti::Member List of all members.

Public Member Functions

const ConstructorSignatureGetSignature () const
const char * GetArgumentName (U32 index) const
void * Invoke (Value *pArgumentValues) const

Detailed Description

************************************************************************** Constructor represents a C++ constructor.


Member Function Documentation

const ConstructorSignature& Xrtti::Constructor::GetSignature  )  const [inline]
 

Returns an object describing the signature of this constructor.

Returns:
an object describing the signature of this constructor.

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

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

Returns:
the name of argument at index [index]

void* Xrtti::Constructor::Invoke Value pArgumentValues  )  const [inline]
 

Invokes this constructor and returns the constructed instance. The constructed instance must be deleted by the caller. If the containing Structure is anonymous, this method will return NULL, since anonymous Structures cannot be instantiated.

Parameters:
pArgumentValues is an array of Values holding the arguments to this constructor. The specific union member which will be used is the one whose value is the same type as the argument value of the constructor. The number of elements in pArgumentValues must match the number of arguments to this constructor.
Returns:
a newly-constructed instance of the containing Structure; or NULL if the containing Structure is anonymous


The documentation for this class was generated from the following file:
Generated on Sun Apr 29 22:26:04 2007 by  doxygen 1.4.6