LLScriptScope Class Reference

#include <lscript_scope.h>

Collaboration diagram for LLScriptScope:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLScriptScope (LLStringTable *stable)
 ~LLScriptScope ()
LLScriptScopeEntryaddEntry (char *identifier, LSCRIPTIdentifierType idtype, LSCRIPTType type)
BOOL checkEntry (char *identifier)
LLScriptScopeEntryfindEntry (char *identifier)
LLScriptScopeEntryfindEntryTyped (char *identifier, LSCRIPTIdentifierType idtype)
void addParentScope (LLScriptScope *scope)

Public Attributes

LLMap< char *, LLScriptScopeEntry * > mEntryMap
LLScriptScopemParentScope
LLStringTablemSTable
S32 mFunctionCount
S32 mStateCount

Detailed Description

Definition at line 299 of file lscript_scope.h.


Constructor & Destructor Documentation

LLScriptScope::LLScriptScope ( LLStringTable stable  )  [inline]

Definition at line 302 of file lscript_scope.h.

LLScriptScope::~LLScriptScope (  )  [inline]

Definition at line 307 of file lscript_scope.h.

References LLMap< INDEX_TYPE, MAPPED_TYPE >::deleteAllData(), and mEntryMap.


Member Function Documentation

LLScriptScopeEntry* LLScriptScope::addEntry ( char *  identifier,
LSCRIPTIdentifierType  idtype,
LSCRIPTType  type 
) [inline]

Definition at line 312 of file lscript_scope.h.

References LLStringTable::addString(), LLMap< INDEX_TYPE, MAPPED_TYPE >::checkData(), LIT_FUNCTION, LIT_STATE, mEntryMap, mFunctionCount, mSTable, mStateCount, and NULL.

Referenced by LLScriptScript::recurse(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptDeclaration::recurse(), LLScriptLabel::recurse(), LLScriptAtRotTarget::recurse(), LLScriptAtTarget::recurse(), LLScriptRezEvent::recurse(), LLScriptEmailEvent::recurse(), LLScriptMoneyEvent::recurse(), LLScriptHTTPResponseEvent::recurse(), LLScriptRemoteEvent::recurse(), LLScriptLinkMessageEvent::recurse(), LLScriptControlEvent::recurse(), LLScriptObjectRezEvent::recurse(), LLScriptSensorEvent::recurse(), LLScriptChatEvent::recurse(), LLScriptRTPEvent::recurse(), LLScriptDataserverEvent::recurse(), LLScriptAttachEvent::recurse(), LLScriptInventoryEvent::recurse(), LLScriptLandCollisionEndEvent::recurse(), LLScriptLandCollisionEvent::recurse(), LLScriptLandCollisionStartEvent::recurse(), LLScriptCollisionEndEvent::recurse(), LLScriptCollisionEvent::recurse(), LLScriptCollisionStartEvent::recurse(), LLScriptTouchEndEvent::recurse(), LLScriptTouchEvent::recurse(), LLScriptTouchStartEvent::recurse(), and LLScriptGlobalVariable::recurse().

void LLScriptScope::addParentScope ( LLScriptScope scope  )  [inline]

Definition at line 395 of file lscript_scope.h.

References mParentScope.

Referenced by LLScriptGlobalFunctions::recurse(), LLScriptEventHandler::recurse(), and LLScriptCompoundStatement::recurse().

BOOL LLScriptScope::checkEntry ( char *  identifier  )  [inline]

Definition at line 332 of file lscript_scope.h.

References LLStringTable::addString(), LLMap< INDEX_TYPE, MAPPED_TYPE >::checkData(), FALSE, mEntryMap, mSTable, and TRUE.

Referenced by LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptDeclaration::recurse(), LLScriptLabel::recurse(), LLScriptAtRotTarget::recurse(), LLScriptAtTarget::recurse(), LLScriptRezEvent::recurse(), LLScriptEmailEvent::recurse(), LLScriptMoneyEvent::recurse(), LLScriptHTTPResponseEvent::recurse(), LLScriptRemoteEvent::recurse(), LLScriptLinkMessageEvent::recurse(), LLScriptControlEvent::recurse(), LLScriptObjectRezEvent::recurse(), LLScriptSensorEvent::recurse(), LLScriptChatEvent::recurse(), LLScriptRTPEvent::recurse(), LLScriptDataserverEvent::recurse(), LLScriptAttachEvent::recurse(), LLScriptInventoryEvent::recurse(), LLScriptLandCollisionEndEvent::recurse(), LLScriptLandCollisionEvent::recurse(), LLScriptLandCollisionStartEvent::recurse(), LLScriptCollisionEndEvent::recurse(), LLScriptCollisionEvent::recurse(), LLScriptCollisionStartEvent::recurse(), LLScriptTouchEndEvent::recurse(), LLScriptTouchEvent::recurse(), LLScriptTouchStartEvent::recurse(), and LLScriptGlobalVariable::recurse().

LLScriptScopeEntry* LLScriptScope::findEntry ( char *  identifier  )  [inline]

Definition at line 346 of file lscript_scope.h.

References LLStringTable::addString(), LLMap< INDEX_TYPE, MAPPED_TYPE >::checkData(), mEntryMap, mParentScope, mSTable, and NULL.

Referenced by LLScriptLValue::recurse(), and LLScriptSAIdentifier::recurse().

LLScriptScopeEntry* LLScriptScope::findEntryTyped ( char *  identifier,
LSCRIPTIdentifierType  idtype 
) [inline]

Definition at line 363 of file lscript_scope.h.

References LLStringTable::addString(), LLMap< INDEX_TYPE, MAPPED_TYPE >::checkData(), LIT_FUNCTION, LIT_LIBRARY_FUNCTION, mEntryMap, mParentScope, mSTable, and NULL.

Referenced by LLScriptJump::recurse(), LLScriptStateChange::recurse(), and LLScriptFunctionCall::recurse().


Member Data Documentation

LLMap<char *, LLScriptScopeEntry *> LLScriptScope::mEntryMap

Definition at line 400 of file lscript_scope.h.

Referenced by addEntry(), checkEntry(), findEntry(), findEntryTyped(), and ~LLScriptScope().

S32 LLScriptScope::mFunctionCount

Definition at line 403 of file lscript_scope.h.

Referenced by addEntry(), and LLScriptScript::recurse().

LLScriptScope* LLScriptScope::mParentScope

Definition at line 401 of file lscript_scope.h.

Referenced by addParentScope(), findEntry(), and findEntryTyped().

LLStringTable* LLScriptScope::mSTable

Definition at line 402 of file lscript_scope.h.

Referenced by addEntry(), checkEntry(), findEntry(), and findEntryTyped().

S32 LLScriptScope::mStateCount

Definition at line 404 of file lscript_scope.h.

Referenced by addEntry(), and LLScriptScript::recurse().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:44 2010 for Second Life Viewer by  doxygen 1.4.7