OpenMW
Public Member Functions | Private Attributes
CSMWorld::ScriptContext Class Reference

#include <scriptcontext.hpp>

List of all members.

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 DatamData
std::vector< std::string > mIds
bool mIdsUpdated

Constructor & Destructor Documentation


Member Function Documentation

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.


Member Data Documentation

std::vector<std::string> CSMWorld::ScriptContext::mIds [mutable, private]
bool CSMWorld::ScriptContext::mIdsUpdated [mutable, private]

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