OpenMW
|
#include <scriptcontext.hpp>
Public Member Functions | |
ScriptContext (const Data &data) | |
virtual bool | canDeclareLocals () const |
Is the compiler allowed to declare local variables? | |
virtual char | getGlobalType (const std::string &name) const |
'l: long, 's': short, 'f': float, ' ': does not exist. | |
virtual char | getMemberType (const std::string &name, const std::string &id) const |
'l: long, 's': short, 'f': float, ' ': does not exist. | |
virtual bool | isId (const std::string &name) const |
Does name match an ID, that can be referenced? | |
void | invalidateIds () |
Private Attributes | |
const Data & | mData |
std::vector< std::string > | mIds |
bool | mIdsUpdated |
CSMWorld::ScriptContext::ScriptContext | ( | const Data & | data | ) |
bool CSMWorld::ScriptContext::canDeclareLocals | ( | ) | const [virtual] |
Is the compiler allowed to declare local variables?
Implements Compiler::Context.
char CSMWorld::ScriptContext::getGlobalType | ( | const std::string & | name | ) | const [virtual] |
'l: long, 's': short, 'f': float, ' ': does not exist.
Implements Compiler::Context.
char CSMWorld::ScriptContext::getMemberType | ( | const std::string & | name, |
const std::string & | id | ||
) | const [virtual] |
'l: long, 's': short, 'f': float, ' ': does not exist.
Implements Compiler::Context.
bool CSMWorld::ScriptContext::isId | ( | const std::string & | name | ) | const [virtual] |
Does name match an ID, that can be referenced?
Implements Compiler::Context.
const Data& CSMWorld::ScriptContext::mData [private] |
std::vector<std::string> CSMWorld::ScriptContext::mIds [mutable, private] |
bool CSMWorld::ScriptContext::mIdsUpdated [mutable, private] |