public

Inheritance Graph

graph BT
	InstructionBlock
	click InstructionBlock "classEScript_1_1InstructionBlock"

Description

Collection of (assembler-)instructions and the corresponding data.

Public Functions

   
   
  InstructionBlock()
UserFunction .
   
void addInstruction(const Instruction & newInstruction)
   
void addInstruction(const Instruction & newInstruction, int line)
   
uint32_t registerInternalFunction(const ObjPtr & userFunction)
   
uint32_t declareString(const std::string & str)
   
uint32_t declareLocalVariable(const StringId & name)
   
const Instruction & getInstruction(const size_t index) const
   
int getLine(const size_t index) const
   
StringId getLocalVarName(const size_t index) const
   
const std::vector< StringId > & getLocalVariables() const
   
size_t getNumLocalVars() const
   
size_t getNumInstructions() const
   
std::string getStringConstant(const uint32_t index) const
   
UserFunction * getUserFunction(const uint32_t index) const
   
std::vector< Instruction > & _accessInstructions()
   
const std::vector< Instruction > & getInstructions() const
   
std::string toString() const

Documentation

function
EScript::InstructionBlock::InstructionBlock

public
   
   
InstructionBlock( )

UserFunction .

Defined in EScript/EScript/Instructions/InstructionBlock.h:30


function
EScript::InstructionBlock::addInstruction

public inline
     
     
void addInstruction( const Instruction & newInstruction )

Defined in EScript/EScript/Instructions/InstructionBlock.h:32


function
EScript::InstructionBlock::addInstruction

public inline
     
     
void addInstruction( const Instruction & newInstruction,
  int line
)    

Defined in EScript/EScript/Instructions/InstructionBlock.h:33


function
EScript::InstructionBlock::registerInternalFunction

public inline
     
     
uint32_t registerInternalFunction( const ObjPtr & userFunction )

Defined in EScript/EScript/Instructions/InstructionBlock.h:37


function
EScript::InstructionBlock::declareString

public inline
     
     
uint32_t declareString( const std::string & str )

Defined in EScript/EScript/Instructions/InstructionBlock.h:42


function
EScript::InstructionBlock::declareLocalVariable

public inline
     
     
uint32_t declareLocalVariable( const StringId & name )

Defined in EScript/EScript/Instructions/InstructionBlock.h:46


function
EScript::InstructionBlock::getInstruction

public const inline
     
     
const Instruction & getInstruction( const size_t index ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:50


function
EScript::InstructionBlock::getLine

public const inline
     
     
int getLine( const size_t index ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:51


function
EScript::InstructionBlock::getLocalVarName

public const
     
     
StringId getLocalVarName( const size_t index ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:54


function
EScript::InstructionBlock::getLocalVariables

public const inline
   
   
const std::vector< StringId > & getLocalVariables( ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:55


function
EScript::InstructionBlock::getNumLocalVars

public const inline
   
   
size_t getNumLocalVars( ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:57


function
EScript::InstructionBlock::getNumInstructions

public const inline
   
   
size_t getNumInstructions( ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:58


function
EScript::InstructionBlock::getStringConstant

public const inline
     
     
std::string getStringConstant( const uint32_t index ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:59


function
EScript::InstructionBlock::getUserFunction

public const
     
     
UserFunction * getUserFunction( const uint32_t index ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:60


function
EScript::InstructionBlock::_accessInstructions

public inline
   
   
std::vector< Instruction > & _accessInstructions( )

Defined in EScript/EScript/Instructions/InstructionBlock.h:62


function
EScript::InstructionBlock::getInstructions

public const inline
   
   
const std::vector< Instruction > & getInstructions( ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:63


function
EScript::InstructionBlock::toString

public const
   
   
std::string toString( ) const

Defined in EScript/EScript/Instructions/InstructionBlock.h:65