NLAIAGENT::CIdMethod Struct Reference

#include <baseai.h>


Public Member Functions

 CIdMethod ()
 CIdMethod (sint32 i, double w, IObjectIA *m, IObjectIA *r)
 CIdMethod (const CIdMethod &a)
bool operator< (const CIdMethod &) const
const CIdMethodoperator= (const CIdMethod &)
virtual ~CIdMethod ()

Data Fields

sint32 Index
 Index of the method in the class.

IObjectIAMethod
 The scrip op code of the method to run.

IObjectIAReturnType
 Return type of the method.

double Weight
 Hwo far the argument of method is nearest of the method argument that we need.


Constructor & Destructor Documentation

NLAIAGENT::CIdMethod::CIdMethod const CIdMethod a  ) 
 

Definition at line 83 of file baseai.cpp.

References NLAIC::IPointerGestion::incRef(), Index, Method, ReturnType, and Weight.

00084         {
00085                 Index = a.Index;
00086                 Weight = a.Weight;
00087                 Method = a.Method;              
00088                 ReturnType = a.ReturnType;
00089                 if(ReturnType != NULL) 
00090                         ReturnType->incRef();
00091         }

NLAIAGENT::CIdMethod::CIdMethod sint32  i,
double  w,
IObjectIA m,
IObjectIA r
 

Definition at line 93 of file baseai.cpp.

References Method, r, ReturnType, sint32, and w.

00094         {
00095                 Index = i;
00096                 Weight = w;
00097                 Method = m;
00098                 ReturnType = r;
00099         }

NLAIAGENT::CIdMethod::CIdMethod  ) 
 

Definition at line 101 of file baseai.cpp.

References Method, and ReturnType.

00102         {
00103                 Method = NULL;
00104                 ReturnType = NULL;
00105         }

NLAIAGENT::CIdMethod::~CIdMethod  )  [virtual]
 

Definition at line 107 of file baseai.cpp.

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

00108         {
00109                 if(ReturnType != NULL) 
00110                         ReturnType->release();
00111         }


Member Function Documentation

bool NLAIAGENT::CIdMethod::operator< const CIdMethod  )  const
 

Definition at line 63 of file baseai.cpp.

References Weight.

00064         {
00065                 return Weight < a.Weight;
00066         }

const CIdMethod & NLAIAGENT::CIdMethod::operator= const CIdMethod  ) 
 

Definition at line 68 of file baseai.cpp.

References NLAIC::IPointerGestion::incRef(), Index, Method, NLAIC::IPointerGestion::release(), ReturnType, and Weight.

00069         {
00070                 Index = a.Index;
00071                 Weight = a.Weight;
00072                 Method = a.Method;
00073                 if(ReturnType != NULL)
00074                 {
00075                         ReturnType->release();
00076                 }
00077                 ReturnType = a.ReturnType;
00078                 if(ReturnType != NULL) ReturnType->incRef();
00079 
00080                 return *this;
00081         }


Field Documentation

sint32 NLAIAGENT::CIdMethod::Index
 

Index of the method in the class.

Definition at line 120 of file baseai.h.

Referenced by CIdMethod(), NLAIAGENT::COperatorScript::getDebugString(), NLAIAGENT::CAgentScript::getDebugString(), NLAISCRIPT::CAgentClass::getPrivateMember(), operator=(), NLAISCRIPT::CFindRunMsg::runOpCode(), and NLAIAGENT::CAgentScript::sendMessage().

IObjectIA* NLAIAGENT::CIdMethod::Method
 

The scrip op code of the method to run.

Definition at line 124 of file baseai.h.

Referenced by CIdMethod(), NLAISCRIPT::CAgentClass::getPrivateMember(), and operator=().

IObjectIA* NLAIAGENT::CIdMethod::ReturnType
 

Return type of the method.

Definition at line 126 of file baseai.h.

Referenced by CIdMethod(), NLAISCRIPT::CAgentClass::getPrivateMember(), operator=(), and ~CIdMethod().

double NLAIAGENT::CIdMethod::Weight
 

Hwo far the argument of method is nearest of the method argument that we need.

Definition at line 122 of file baseai.h.

Referenced by CIdMethod(), NLAISCRIPT::CAgentClass::getPrivateMember(), operator<(), and operator=().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 16 09:16:04 2004 for NeL by doxygen 1.3.6