#include <object_load.h>
Inheritance diagram for NLAISCRIPT::CLoadStackObject:
Public Member Functions | |
CLoadStackObject (const std::list< sint32 > &i) | |
CLoadStackObject () | |
sint32 | decRef () |
Decrement the reference of an object. | |
virtual void | getDebugString (std::string &) const |
virtual const std::string | getInfo () |
virtual const NLAIAGENT::IObjectIA * | getObject (CCodeContext &context) const |
Get an compoment from the stack object. | |
virtual const NLAIAGENT::IBaseGroupType * | getParam (CCodeContext &context) const |
Get the argument define in the stack for an object stored in the stack. | |
const sint32 & | getRef () const |
get the refence count. | |
void | incRef () |
Inc a reference. We use this when we have to conserve a pointer memeory for exemple in a list. | |
virtual void | release () |
Release allow to release the pointer. The last release when the _Ref is nul delete the object. | |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
NLAIC::IBasicInterface. | |
virtual const NLAIC::IBasicType * | clone () const |
virtual const NLAIC::CIdentType & | getType () const |
virtual void | load (NLMISC::IStream &is) |
virtual const NLAIC::IBasicType * | newInstance () const |
virtual void | save (NLMISC::IStream &os) |
Static Public Attributes | |
const NLAIC::CIdentType | IdLoadSelfObject |
Private Attributes | |
std::list< sint32 > | _I |
|
Definition at line 132 of file object_load.h. Referenced by clone(), and newInstance().
00132 {} |
|
Definition at line 133 of file object_load.h.
00133 :_I(i) 00134 { 00135 } |
|
This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. Implements NLAIC::IBasicType. Definition at line 149 of file object_load.h. References CLoadStackObject(), and x.
00150 { 00151 NLAIC::IBasicType *x= new CLoadStackObject(_I); 00152 return x; 00153 } |
|
Decrement the reference of an object.
Definition at line 93 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIC::IPointerGestion::release(), and NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00094 {
00095 return --_Ref;
00096 }
|
|
Implements NLMISC::IClassable. Reimplemented in NLAIC::CIdentType. Definition at line 116 of file abstract_interface.h. Referenced by NLAISCRIPT::CAgentClass::isClassInheritedFrom().
00117 { 00118 return std::string("<unnamed>"); 00119 } |
|
This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. Implements NLAIC::IBasicType. Definition at line 56 of file object_load.h.
00056 {} |
|
Definition at line 292 of file abstract_interface.h. References NLAIC::IBasicType::getDebugString(), and s.
00293 { 00294 std::string s; 00295 getDebugString(s); 00296 return s; 00297 } |
|
Get an compoment from the stack object.
Implements NLAISCRIPT::ILoadObject. Definition at line 63 of file objects_load.cpp. References NLAIAGENT::IObjectIA::getStaticMember(), and NLAISCRIPT::CCodeContext::Stack.
00064 { 00065 NLAIAGENT::IObjectIA *a = (NLAIAGENT::IObjectIA *)context.Stack[(int)context.Stack - 1]; 00066 std::list<sint32>::const_iterator i = _I.begin(); 00067 int j; 00068 while(i != _I.end()) 00069 { 00070 j = *i++; 00071 a = (NLAIAGENT::IObjectIA *)a->getStaticMember(j); 00072 } 00073 return a; 00074 } |
|
Get the argument define in the stack for an object stored in the stack.
Implements NLAISCRIPT::ILoadObject. Definition at line 58 of file objects_load.cpp. References NLAISCRIPT::CCodeContext::Stack.
00059 { 00060 return (NLAIAGENT::IBaseGroupType *)context.Stack[(int)context.Stack]; 00061 } |
|
get the refence count.
Definition at line 99 of file abstract_interface.h. References NLAIC::IPointerGestion::_Ref, and sint32. Referenced by NLAIAGENT::CAgentTimerHandle::~CAgentTimerHandle().
00100 {
00101 return _Ref;
00102 }
|
|
getType return a unique string how represente the class, it can be the name of the class. This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry). Implements NLAIC::IBasicType. Definition at line 144 of file object_load.h.
00145 { 00146 return IdLoadSelfObject; 00147 } |
|
|
Load the class from a stream. Implements NLAIC::IBasicInterface. Definition at line 166 of file object_load.h. References NLMISC::IStream::serialCont().
00167 { 00168 is.serialCont(_I); 00169 } |
|
This function allow a new instance, that mean that the class is a class factory. Implements NLAIC::IBasicType. Definition at line 155 of file object_load.h. References CLoadStackObject(), and x.
00156 { 00157 NLAIC::IBasicType *x= new CLoadStackObject(); 00158 return x; 00159 } |
|
|
Save the class in a stream. Implements NLAIC::IBasicInterface. Definition at line 161 of file object_load.h. References NLMISC::IStream::serialCont().
00162 { 00163 std::list<sint32> &i = (std::list<sint32> &) _I; 00164 os.serialCont(i); 00165 } |
|
Reimplemented from NLAIC::IPointerGestion. Definition at line 328 of file abstract_interface.h. References NLAIC::IBasicInterface::load(), and NLAIC::IBasicInterface::save().
|
|
Definition at line 129 of file object_load.h. |
|
Initial value: NLAIC::CIdentType("LoadStackObject", NLAIC::CSelfClassFactory(CLoadStackObject(l)), NLAIC::CTypeOfObject(NLAIC::CTypeOfObject::tObject),NLAIC::CTypeOfOperator(0)) Definition at line 253 of file opcode_register.cpp. |