GemaLuaCoreLib
The GeMA Lua Core library
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
GmLuaIntegrationRule Class Reference

A proxy class to export GmIntegrationRule methods to the Lua environment. More...

#include <gmLuaIntegrationRule.h>

Inheritance diagram for GmLuaIntegrationRule:
Inheritance graph
[legend]
Collaboration diagram for GmLuaIntegrationRule:
Collaboration graph
[legend]

Public Member Functions

 GmLuaIntegrationRule (const GmIntegrationRule *ir, bool newRule, const GmLogCategory &logger)
 Constructor. Receives the integration rule to be wrapped. If newRule is true, the proxy takes ownership of the supplied rule.
 
virtual ~GmLuaIntegrationRule ()
 Destructor.
 
virtual const char * typeName () const
 Returns the object type as will be stored in the object metatable.
 
virtual QString toString () const
 Default method used by the __tostring metamethod to capture the result of tostring() over an object.
 
virtual void fillMetatable (lua_State *L, int index)
 Prepares the object metatable for calling methods.
 
virtual void * getClassMetatableID ()
 Returns an unique identifier to identify an user object as a GmLuaMesh object.
 
const GmIntegrationRuleintRule () const
 Returns the wrapped integration rule.
 
- Public Member Functions inherited from GmLuaObject
virtual ~GmLuaObject ()
 Destrutor.
 
virtual void populateMetatable (lua_State *L, int index)
 Fills the object metatable to allow for the proxy to export its methods.
 
QVariant ptrToVariant ()
 Constructs a QVariant storing a POINTER to the current object.
 
void ref ()
 Increments the object reference count. Use with care.
 

Protected Attributes

const GmIntegrationRule_ir
 The integration rule 'wrapped' by this proxy object.
 
bool _newRule
 Does the object owns the integration rule?
 
- Protected Attributes inherited from GmLuaObject
const GmLogCategory_logger
 A logger used by the proxy when needed.
 
QAtomicInteger< int > _refCount
 Lua objects are reference counted to enable sharing them among different states. This is needed to allow for passing objects as parameters in a parallel call. The garbage collection method releases memory only for the last reference.
 

Private Member Functions

int ruleName (lua_State *L)
 Returns the integration rule name.
 
int numPoints (lua_State *L)
 Returns the number of integration points returned by this rule.
 
int integrationPoint (lua_State *L)
 Given an integration point index, returns the integration point coordinate + weight.
 
int numNaturalCoord (lua_State *L)
 Returns the number of natural coordinates used by this rule.
 
int degree (lua_State *L)
 Returns the integration degree for this rule.
 

Additional Inherited Members

- Protected Member Functions inherited from GmLuaObject
 GmLuaObject (const GmLogCategory &logger)
 Construtor protegido. Somente classes derivadas devem ser instanciadas.
 

Detailed Description

A proxy class to export GmIntegrationRule methods to the Lua environment.


The documentation for this class was generated from the following files: