OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Compiler::Literals Class Reference

Literal values. More...

#include <literals.hpp>

Collaboration diagram for Compiler::Literals:

Public Member Functions

int getIntegerSize () const
 Return size of integer block (in bytes). More...
 
int getFloatSize () const
 Return size of float block (in bytes). More...
 
int getStringSize () const
 Return size of string block (in bytes). More...
 
void append (std::vector< Interpreter::Type_Code > &code) const
 
int addInteger (Interpreter::Type_Integer value)
 add integer liternal and return index. More...
 
int addFloat (Interpreter::Type_Float value)
 add float literal and return value. More...
 
int addString (const std::string &value)
 add string literal and return value. More...
 
void clear ()
 remove all literals. More...
 

Private Attributes

std::vector
< Interpreter::Type_Integer
mIntegers
 
std::vector
< Interpreter::Type_Float
mFloats
 
std::vector< std::string > mStrings
 

Detailed Description

Literal values.

Member Function Documentation

int Compiler::Literals::addFloat ( Interpreter::Type_Float  value)

add float literal and return value.

Here is the caller graph for this function:

int Compiler::Literals::addInteger ( Interpreter::Type_Integer  value)

add integer liternal and return index.

Here is the caller graph for this function:

int Compiler::Literals::addString ( const std::string &  value)

add string literal and return value.

Here is the caller graph for this function:

void Compiler::Literals::append ( std::vector< Interpreter::Type_Code > &  code) const

Apepnd literal blocks to code.

Note
code blocks will be padded for 32-bit alignment.

Here is the call graph for this function:

Here is the caller graph for this function:

void Compiler::Literals::clear ( )

remove all literals.

Here is the caller graph for this function:

int Compiler::Literals::getFloatSize ( ) const

Return size of float block (in bytes).

Here is the caller graph for this function:

int Compiler::Literals::getIntegerSize ( ) const

Return size of integer block (in bytes).

Here is the caller graph for this function:

int Compiler::Literals::getStringSize ( ) const

Return size of string block (in bytes).

Here is the caller graph for this function:

Member Data Documentation

std::vector<Interpreter::Type_Float> Compiler::Literals::mFloats
private
std::vector<Interpreter::Type_Integer> Compiler::Literals::mIntegers
private
std::vector<std::string> Compiler::Literals::mStrings
private

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