|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLAISCRIPT::IBlock Class ReferenceClass IBlock.
More...
#include <module.h>
Inheritance diagram for NLAISCRIPT::IBlock:
List of all members.
Public Methods |
| IBlock (bool debugMode, tDicoStr *dico) |
| Construct with an active dictionarry and debug mode. More...
|
| IBlock (bool debugMode) |
virtual | ~IBlock () |
NLAIAGENT::IObjectIA * | getVar (const char *Name) |
| Gets a pointer to a locale variable. More...
|
NLAIAGENT::IObjectIA * | eraseVar (const char *Name) |
tDicoStr * | lockDictionarry () |
| Locks the dictionnarry and get it. More...
|
bool | allocLocVar (const char *name, NLAIAGENT::IObjectIA *var) |
| Allocs a new local var . More...
|
CCodeBrancheRun * | getCode () |
| Builds the code, here we update all IConstarint reference. More...
|
CCodeBrancheRunDebug * | getCodeDebug (IScriptDebugSource *sourceCode) |
| Build a CCodeBrancheRunDebug. More...
|
sint32 | isCodeMonted () |
| If the code is builded. More...
|
tListCode & | listCode () |
| Get the list of code. More...
|
void | addCode (IOpCode *op) |
| Add a op-code pointer, warnning the function increment the ref of the pointer by incRef(). More...
|
void | setCurrentLine (uint16 line) |
| Set the current line number in the source code. More...
|
void | setFirstOpCodeInLine (bool b) |
| Set the Flag _FirstOpCodeInLine. More...
|
|
const NLAIC::IBasicType * | clone () const |
| This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...
|
const NLAIC::IBasicType * | newInstance () const |
| This function allow a new instance, that mean that the class is a class factory. More...
|
const NLAIC::CIdentType & | getType () const |
| getType return a unique string how represente the class, it can be the name of the class. More...
|
void | getDebugString (std::string &) const |
| 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. More...
|
void | save (NLMISC::IStream &os) |
| Save the class in a stream. More...
|
void | load (NLMISC::IStream &is) |
| Load the class from a stream. More...
|
const NLAIAGENT::IObjectIA::CProcessResult & | run () |
bool | isEqual (const NLAIAGENT::IBasicObjectIA &a) const |
|
void | pushCode (IOpCode *op) |
IOpCode * | getBack () |
IOpCode * | getFront () |
void | pushBagCode (CBagOfCode *bOp) |
CBagOfCode * | getBagOfCode () |
Static Public Attributes |
const NLAIC::CIdentType | IdBlock |
Protected Types |
typedef std::map< NLAISCRIPT::CStringType,
NLAIAGENT::IObjectIA
* >::iterator | tDicoStrIter |
| this typedef define an correct std::map iterator for store local variable in the heap. More...
|
Private Attributes |
CCodeBrancheRun * | _Cbr |
| Op-code that define the block. This object is build at the end of parse. More...
|
tListCode | _ListCode |
| This list containe the bag of code. More...
|
tDicoStr * | _DicoLocVar |
| Local variable is stored here. More...
|
bool | _HaveToDeleteDico |
| If user want a reference to the local variable dictionary then we don't have to delete it. More...
|
bool | _Debug |
bool | _FirstOpCodeInLine |
| Switch between a normal CCodeBrancheRun and a debug one. More...
|
uint16 | _CurrentLine |
| True while no new opCode as been add since the laste
. More...
|
Detailed Description
Class IBlock.
This class allows to store a block of op-code with eachs local variables.
-
Author:
-
Chafik sameh , Nevrax France
-
Date:
-
2000
Definition at line 43 of file module.h.
Member Typedef Documentation
|
this typedef define an correct std::map iterator for store local variable in the heap.
Definition at line 50 of file module.h.
Referenced by ~IBlock. |
Constructor & Destructor Documentation
NLAISCRIPT::IBlock::IBlock |
( |
bool |
debugMode, |
|
|
tDicoStr * |
dico |
|
) |
[inline] |
|
NLAISCRIPT::IBlock::IBlock |
( |
bool |
debugMode |
) |
[inline] |
|
virtual NLAISCRIPT::IBlock::~IBlock |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void NLAISCRIPT::IBlock::addCode |
( |
IOpCode * |
op |
) |
[inline] |
|
IOpCode* NLAISCRIPT::IBlock::getBack |
( |
|
) |
[inline] |
|
CBagOfCode* NLAISCRIPT::IBlock::getBagOfCode |
( |
|
) |
[inline] |
|
|
Builds the code, here we update all IConstarint reference.
Definition at line 156 of file module.h.
References x. |
void NLAISCRIPT::IBlock::getDebugString |
( |
std::string & |
|
) |
const [inline, virtual] |
|
|
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 224 of file module.h. |
IOpCode* NLAISCRIPT::IBlock::getFront |
( |
|
) |
[inline] |
|
|
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 219 of file module.h. |
sint32 NLAISCRIPT::IBlock::isCodeMonted |
( |
|
) |
[inline] |
|
|
If the code is builded.
Definition at line 201 of file module.h.
References _Cbr. |
tListCode& NLAISCRIPT::IBlock::listCode |
( |
|
) |
[inline] |
|
|
Get the list of code.
Definition at line 240 of file module.h. |
tDicoStr* NLAISCRIPT::IBlock::lockDictionarry |
( |
|
) |
[inline] |
|
|
This function allow a new instance, that mean that the class is a class factory.
Implements NLAIC::IBasicType.
Definition at line 214 of file module.h.
References clone. |
void NLAISCRIPT::IBlock::pushBagCode |
( |
CBagOfCode * |
bOp |
) |
[inline] |
|
void NLAISCRIPT::IBlock::pushCode |
( |
IOpCode * |
op |
) |
[inline] |
|
void NLAISCRIPT::IBlock::setCurrentLine |
( |
uint16 |
line |
) |
[inline] |
|
void NLAISCRIPT::IBlock::setFirstOpCodeInLine |
( |
bool |
b |
) |
[inline] |
|
Member Data Documentation
uint16 NLAISCRIPT::IBlock::_CurrentLine [private]
|
|
bool NLAISCRIPT::IBlock::_Debug [private]
|
|
tDicoStr* NLAISCRIPT::IBlock::_DicoLocVar [private]
|
|
bool NLAISCRIPT::IBlock::_FirstOpCodeInLine [private]
|
|
bool NLAISCRIPT::IBlock::_HaveToDeleteDico [private]
|
|
|
If user want a reference to the local variable dictionary then we don't have to delete it.
Definition at line 60 of file module.h.
Referenced by IBlock, and lockDictionarry. |
tListCode NLAISCRIPT::IBlock::_ListCode [private]
|
|
|
This list containe the bag of code.
Definition at line 56 of file module.h. |
The documentation for this class was generated from the following files:
|
|