Pol  Rev 533
StoredTokenContainer Class Reference

#include <symcont.h>

+ Inheritance diagram for StoredTokenContainer:
+ Collaboration diagram for StoredTokenContainer:

List of all members.

Public Member Functions

 StoredTokenContainer (int growBy=512)
void append_tok (const StoredToken &token, unsigned *position=NULL)
void atGet1 (unsigned position, StoredToken &token) const
void atPut1 (const StoredToken &token, unsigned position)
unsigned count (void) const
virtual void * detach (void)
unsigned next (void)
virtual void pack (void)
virtual void read (FILE *fp)
virtual void resize (unsigned lengthToAdd)
void setcount (unsigned newCount)

Public Attributes

StoredTokenST

Detailed Description

Definition at line 84 of file symcont.h.


Constructor & Destructor Documentation

StoredTokenContainer::StoredTokenContainer ( int  growBy = 512) [inline, explicit]

Definition at line 88 of file symcont.h.


Member Function Documentation

void StoredTokenContainer::append_tok ( const StoredToken token,
unsigned *  position = NULL 
)

Definition at line 164 of file symcont.cpp.

References atPut1(), resize(), and SymbolContainer::usedLen.

Referenced by EScriptProgram::addToken(), and EScriptProgram::append().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StoredTokenContainer::atGet1 ( unsigned  position,
StoredToken token 
) const

Definition at line 183 of file symcont.cpp.

References count(), decint(), and SymbolContainer::s.

Referenced by Compiler::_getStatement(), EScriptProgram::_readToken(), Compiler::handleBracketedFunction(), Compiler::handleBracketedFunction3(), Compiler::handleBracketedIf(), Compiler::handleFunction(), and Compiler::patchoffset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void StoredTokenContainer::atPut1 ( const StoredToken token,
unsigned  position 
)

Definition at line 173 of file symcont.cpp.

References count(), decint(), and SymbolContainer::s.

Referenced by append_tok(), Compiler::handleBracketedFunction(), Compiler::handleBracketedIf(), Compiler::handleBracketedWhile(), Compiler::handleFunction(), Compiler::handleIf(), and Compiler::patchoffset().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void * StoredTokenContainer::detach ( void  ) [virtual]

Reimplemented from SymbolContainer.

Definition at line 200 of file symcont.cpp.

References ST.

void StoredTokenContainer::pack ( void  ) [virtual]

Reimplemented from SymbolContainer.

Definition at line 194 of file symcont.cpp.

References SymbolContainer::s, and ST.

void StoredTokenContainer::read ( FILE *  fp) [virtual]

Reimplemented from SymbolContainer.

Definition at line 150 of file symcont.cpp.

References SymbolContainer::s, and ST.

Referenced by EScriptProgram::read().

+ Here is the caller graph for this function:

void StoredTokenContainer::resize ( unsigned  lengthToAdd) [virtual]

Reimplemented from SymbolContainer.

Definition at line 207 of file symcont.cpp.

References SymbolContainer::s, and ST.

Referenced by append_tok().

+ Here is the caller graph for this function:

void StoredTokenContainer::setcount ( unsigned  newCount) [inline]

Definition at line 92 of file symcont.h.

References SymbolContainer::usedLen.

Referenced by Compiler::rollback().

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 87 of file symcont.h.

Referenced by detach(), pack(), read(), and resize().


The documentation for this class was generated from the following files: