NLAISCRIPT::CFunctionTag Struct Reference

#include <constraint.h>


Detailed Description

Struct CFunctionTag.

This structer is used for passing method characteristic.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 49 of file constraint.h.

Public Member Functions

 CFunctionTag (const CFunctionTag &c)
 Copy constructor. Its needed because some method use a stack CFunctionTag manipulation.

 CFunctionTag ()
 Default constructor.

const CFunctionTagoperator= (const CFunctionTag &c)
 Its needed because some method use a stack CFunctionTag manipulation.

void setTypeObject (NLAIAGENT::IObjectIA *o)
 Set the type of return method expression, the type is a NLAIAGENT::IObjectIA where its used the getType member method.

virtual ~CFunctionTag ()

Data Fields

sint32 Inheritance
 Idee of the base class were the method is. Idee have the same functionality as a offset.

std::list< sint32Member
 Hierarchy access of the method.

CMethodeNameMethod
 Name and type of the method.

const NLAIAGENT::IVarNameMethodName
 Method name.

sint32 MethodNum
 Offset of the method in the class.

const NLAIAGENT::IObjectIAObject
 Pointer adress of the class that the metod is define, in general this pointer is the class strored in the class factory.

NLAIAGENT::IObjectIAReturnType
 Type of returned expression.


Constructor & Destructor Documentation

NLAISCRIPT::CFunctionTag::CFunctionTag  )  [inline]
 

Default constructor.

Definition at line 67 of file constraint.h.

References Object.

00068                 {
00069                         Method = NULL;
00070                         Object = NULL;
00071                         ReturnType = NULL;
00072                         MethodName = NULL;
00073                 }

NLAISCRIPT::CFunctionTag::CFunctionTag const CFunctionTag c  )  [inline]
 

Copy constructor. Its needed because some method use a stack CFunctionTag manipulation.

Definition at line 76 of file constraint.h.

References NLAIC::IPointerGestion::incRef(), Inheritance, Member, Method, MethodName, MethodNum, Object, and ReturnType.

00077                 {
00078                         Inheritance = c.Inheritance;
00079                         MethodNum = c.MethodNum;
00080                         Method = c.Method;  
00081                         Object = c.Object;
00082                         MethodName = c.MethodName;
00083                         Member = c.Member;
00084                         ReturnType = c.ReturnType;
00085                         if(ReturnType) ReturnType->incRef();
00086                 }

virtual NLAISCRIPT::CFunctionTag::~CFunctionTag  )  [inline, virtual]
 

Definition at line 112 of file constraint.h.

References NLAIC::IPointerGestion::release().

00113                 {
00114                         if(ReturnType) ReturnType->release();
00115                 }


Member Function Documentation

const CFunctionTag& NLAISCRIPT::CFunctionTag::operator= const CFunctionTag c  )  [inline]
 

Its needed because some method use a stack CFunctionTag manipulation.

Definition at line 89 of file constraint.h.

References NLAIC::IPointerGestion::incRef(), Inheritance, Member, Method, MethodName, MethodNum, Object, NLAIC::IPointerGestion::release(), and ReturnType.

00090                 {
00091                         Inheritance = c.Inheritance;
00092                         MethodNum = c.MethodNum;
00093                         Method = c.Method;  
00094                         Object = c.Object;
00095                         MethodName = c.MethodName;
00096                         Member = c.Member;
00097                         if(ReturnType) ReturnType->release();
00098                         ReturnType = c.ReturnType;
00099                         if(ReturnType) ReturnType->incRef();
00100                         return *this;
00101                 }

void NLAISCRIPT::CFunctionTag::setTypeObject NLAIAGENT::IObjectIA o  )  [inline]
 

Set the type of return method expression, the type is a NLAIAGENT::IObjectIA where its used the getType member method.

Definition at line 105 of file constraint.h.

References NLAIC::IPointerGestion::incRef(), and NLAIC::IPointerGestion::release().

Referenced by NLAISCRIPT::CCompilateur::findMethode().

00106                 {
00107                         if(ReturnType) ReturnType->release();
00108                         ReturnType = o;
00109                         ReturnType->incRef();
00110                 }


Field Documentation

sint32 NLAISCRIPT::CFunctionTag::Inheritance
 

Idee of the base class were the method is. Idee have the same functionality as a offset.

Definition at line 52 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), NLAISCRIPT::CConstraintFindRun::run(), NLAISCRIPT::CConstraintMethode::run(), and NLAISCRIPT::CConstraintFindRun::setOpCode().

std::list<sint32> NLAISCRIPT::CFunctionTag::Member
 

Hierarchy access of the method.

Definition at line 62 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), NLAISCRIPT::CConstraintFindRun::run(), and NLAISCRIPT::CConstraintMethode::run().

CMethodeName* NLAISCRIPT::CFunctionTag::Method
 

Name and type of the method.

Definition at line 56 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), and NLAISCRIPT::CConstraintMethode::run().

const NLAIAGENT::IVarName* NLAISCRIPT::CFunctionTag::MethodName
 

Method name.

Definition at line 60 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), and NLAISCRIPT::CConstraintMethode::run().

sint32 NLAISCRIPT::CFunctionTag::MethodNum
 

Offset of the method in the class.

Definition at line 54 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), NLAISCRIPT::CConstraintMethode::run(), and NLAISCRIPT::CConstraintFindRun::setOpCode().

const NLAIAGENT::IObjectIA* NLAISCRIPT::CFunctionTag::Object
 

Pointer adress of the class that the metod is define, in general this pointer is the class strored in the class factory.

Definition at line 58 of file constraint.h.

Referenced by CFunctionTag(), NLAISCRIPT::CCompilateur::findMethode(), operator=(), and NLAISCRIPT::CConstraintMethode::run().

NLAIAGENT::IObjectIA* NLAISCRIPT::CFunctionTag::ReturnType
 

Type of returned expression.

Definition at line 64 of file constraint.h.

Referenced by CFunctionTag(), operator=(), and NLAISCRIPT::CConstraintMethode::run().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 11:40:48 2004 for NeL by doxygen 1.3.6