OpenMW
|
Literal values. More...
#include <literals.hpp>
Public Member Functions | |
int | getIntegerSize () const |
Return size of integer block (in bytes). | |
int | getFloatSize () const |
Return size of float block (in bytes). | |
int | getStringSize () const |
Return size of string block (in bytes). | |
void | append (std::vector< Interpreter::Type_Code > &code) const |
int | addInteger (Interpreter::Type_Integer value) |
add integer liternal and return index. | |
int | addFloat (Interpreter::Type_Float value) |
add float literal and return value. | |
int | addString (const std::string &value) |
add string literal and return value. | |
void | clear () |
remove all literals. | |
Private Attributes | |
std::vector < Interpreter::Type_Integer > | mIntegers |
std::vector < Interpreter::Type_Float > | mFloats |
std::vector< std::string > | mStrings |
Literal values.
int Compiler::Literals::addFloat | ( | Interpreter::Type_Float | value | ) |
add float literal and return value.
int Compiler::Literals::addInteger | ( | Interpreter::Type_Integer | value | ) |
add integer liternal and return index.
int Compiler::Literals::addString | ( | const std::string & | value | ) |
add string literal and return value.
void Compiler::Literals::append | ( | std::vector< Interpreter::Type_Code > & | code | ) | const |
Apepnd literal blocks to code.
void Compiler::Literals::clear | ( | ) |
remove all literals.
int Compiler::Literals::getFloatSize | ( | ) | const |
Return size of float block (in bytes).
int Compiler::Literals::getIntegerSize | ( | ) | const |
Return size of integer block (in bytes).
int Compiler::Literals::getStringSize | ( | ) | const |
Return size of string block (in bytes).
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] |