torque Torque Game Engine Documentation
CVS Revision Label 1.3.x

CodeBlock Class Reference

#include <compiler.h>


Public Member Functions

 CodeBlock ()
 ~CodeBlock ()
void addToCodeList ()
void removeFromCodeList ()
void calcBreakList ()
void clearAllBreaks ()
void setAllBreaks ()
void clearBreakpoint (U32 lineNumber)
void setBreakpoint (U32 lineNumber)
void findBreakLine (U32 ip, U32 &line, U32 &instruction)
void getFunctionArgs (char buffer[1024], U32 offset)
const char * getFileLine (U32 ip)
bool read (StringTableEntry fileName, Stream &st)
bool compile (const char *dsoName, StringTableEntry fileName, const char *script)
void incRefCount ()
void decRefCount ()
const char * compileExec (StringTableEntry fileName, const char *script, bool noCalls)
const char * exec (U32 offset, const char *fnName, Namespace *ns, U32 argc, const char **argv, bool noCalls, StringTableEntry packageName)

Static Public Member Functions

static const StringTableEntry getCurrentCodeBlockName ()
static CodeBlockfind (StringTableEntry)

Data Fields

StringTableEntry name
char * globalStrings
char * functionStrings
F64globalFloats
F64functionFloats
U32 codeSize
U32code
U32 refCount
U32 lineBreakPairCount
U32lineBreakPairs
U32 breakListSize
U32breakList
CodeBlocknextFile
StringTableEntry mRoot

Static Private Attributes

static CodeBlocksCurrentCodeBlock


Constructor & Destructor Documentation

CodeBlock::CodeBlock  ) 
 

CodeBlock::~CodeBlock  ) 
 


Member Function Documentation

static const StringTableEntry CodeBlock::getCurrentCodeBlockName  )  [static]
 

static CodeBlock* CodeBlock::find StringTableEntry   )  [static]
 

void CodeBlock::addToCodeList  ) 
 

void CodeBlock::removeFromCodeList  ) 
 

void CodeBlock::calcBreakList  ) 
 

void CodeBlock::clearAllBreaks  ) 
 

void CodeBlock::setAllBreaks  ) 
 

void CodeBlock::clearBreakpoint U32  lineNumber  ) 
 

void CodeBlock::setBreakpoint U32  lineNumber  ) 
 

void CodeBlock::findBreakLine U32  ip,
U32 line,
U32 instruction
 

void CodeBlock::getFunctionArgs char  buffer[1024],
U32  offset
 

const char* CodeBlock::getFileLine U32  ip  ) 
 

bool CodeBlock::read StringTableEntry  fileName,
Stream st
 

bool CodeBlock::compile const char *  dsoName,
StringTableEntry  fileName,
const char *  script
 

void CodeBlock::incRefCount  ) 
 

void CodeBlock::decRefCount  ) 
 

const char* CodeBlock::compileExec StringTableEntry  fileName,
const char *  script,
bool  noCalls
 

const char* CodeBlock::exec U32  offset,
const char *  fnName,
Namespace ns,
U32  argc,
const char **  argv,
bool  noCalls,
StringTableEntry  packageName
 


Field Documentation

CodeBlock* CodeBlock::sCurrentCodeBlock [static, private]
 

StringTableEntry CodeBlock::name
 

char* CodeBlock::globalStrings
 

char* CodeBlock::functionStrings
 

F64* CodeBlock::globalFloats
 

F64* CodeBlock::functionFloats
 

U32 CodeBlock::codeSize
 

U32* CodeBlock::code
 

U32 CodeBlock::refCount
 

U32 CodeBlock::lineBreakPairCount
 

U32* CodeBlock::lineBreakPairs
 

U32 CodeBlock::breakListSize
 

U32* CodeBlock::breakList
 

CodeBlock* CodeBlock::nextFile
 

StringTableEntry CodeBlock::mRoot
 




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen