Local variable declarations.
More...
#include <locals.hpp>
|
char | getType (const std::string &name) const |
| 's': short, 'l': long, 'f': float, ' ': does not exist. More...
|
|
int | getIndex (const std::string &name) const |
| return index for local variable name (-1: does not exist). More...
|
|
bool | search (char type, const std::string &name) const |
|
int | searchIndex (char type, const std::string &name) const |
|
const std::vector< std::string > & | get (char type) const |
|
void | write (std::ostream &localFile) const |
| write declarations to file. More...
|
|
void | declare (char type, const std::string &name) |
| declares a variable. More...
|
|
void | clear () |
| remove all declarations. More...
|
|
|
std::vector< std::string > & | get (char type) |
|
|
std::vector< std::string > | mShorts |
|
std::vector< std::string > | mLongs |
|
std::vector< std::string > | mFloats |
|
Local variable declarations.
void Compiler::Locals::clear |
( |
| ) |
|
void Compiler::Locals::declare |
( |
char |
type, |
|
|
const std::string & |
name |
|
) |
| |
std::vector< std::string > & Compiler::Locals::get |
( |
char |
type | ) |
|
|
private |
const std::vector< std::string > & Compiler::Locals::get |
( |
char |
type | ) |
const |
int Compiler::Locals::getIndex |
( |
const std::string & |
name | ) |
const |
return index for local variable name (-1: does not exist).
char Compiler::Locals::getType |
( |
const std::string & |
name | ) |
const |
's': short, 'l': long, 'f': float, ' ': does not exist.
bool Compiler::Locals::search |
( |
char |
type, |
|
|
const std::string & |
name |
|
) |
| const |
int Compiler::Locals::searchIndex |
( |
char |
type, |
|
|
const std::string & |
name |
|
) |
| const |
Return index for local variable name of type type (-1: variable does not exit).
void Compiler::Locals::write |
( |
std::ostream & |
localFile | ) |
const |
write declarations to file.
std::vector<std::string> Compiler::Locals::mFloats |
|
private |
std::vector<std::string> Compiler::Locals::mLongs |
|
private |
std::vector<std::string> Compiler::Locals::mShorts |
|
private |
The documentation for this class was generated from the following files:
- /home/travis/build/OpenMW/openmw/components/compiler/locals.hpp
- /home/travis/build/OpenMW/openmw/components/compiler/locals.cpp