OpenMW
Public Member Functions | Private Attributes
Compiler::Literals Class Reference

Literal values. More...

#include <literals.hpp>

List of all members.

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

Detailed Description

Literal values.


Member Function Documentation

add float literal and return 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.

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

remove all literals.

Return size of float block (in bytes).

Return size of integer block (in bytes).

Return size of string block (in bytes).


Member Data Documentation

std::vector<std::string> Compiler::Literals::mStrings [private]

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