ConstructorCall Class Reference

#include <Pt/Lua/Call.h>

Reflected constructor invocation from Lua.

Inherits Call.

Public Member Functions

 ConstructorCall (Pt::Reflex::ConstructorInfo *ci, void *instance, std::vector< Pt::Reflex::Argument > args)
 Creates a construction of instance with ci and args.
Pt::Any call () override
 Performs the invocation and returns the result.
Pt::Reflex::Type * rtype () const override
 Returns the Reflex result type, or a null pointer.
bool hasError () const
 Returns true when the invocation stored an error.
const std::string & errorMessage () const
 Returns the stored error text.

Protected Member Functions

void setError (const std::string &msg)
 Stores msg as the error of this call.