OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Compiler::Context Class Referenceabstract

#include <context.hpp>

Inheritance diagram for Compiler::Context:
Collaboration diagram for Compiler::Context:

Public Member Functions

 Context ()
 
virtual ~Context ()
 
virtual bool canDeclareLocals () const =0
 Is the compiler allowed to declare local variables? More...
 
void setExtensions (const Extensions *extensions=0)
 
const ExtensionsgetExtensions () const
 
virtual char getGlobalType (const std::string &name) const =0
 'l: long, 's': short, 'f': float, ' ': does not exist. More...
 
virtual std::pair< char, boolgetMemberType (const std::string &name, const std::string &id) const =0
 
virtual bool isId (const std::string &name) const =0
 Does name match an ID, that can be referenced? More...
 
virtual bool isJournalId (const std::string &name) const =0
 Does name match a journal ID? More...
 

Private Attributes

const ExtensionsmExtensions
 

Constructor & Destructor Documentation

Compiler::Context::Context ( )
inline
virtual Compiler::Context::~Context ( )
inlinevirtual

Member Function Documentation

virtual bool Compiler::Context::canDeclareLocals ( ) const
pure virtual

Is the compiler allowed to declare local variables?

Implemented in MWScript::CompilerContext, and CSMWorld::ScriptContext.

const Extensions* Compiler::Context::getExtensions ( ) const
inline

Here is the caller graph for this function:

virtual char Compiler::Context::getGlobalType ( const std::string &  name) const
pure virtual

'l: long, 's': short, 'f': float, ' ': does not exist.

Implemented in MWScript::CompilerContext, and CSMWorld::ScriptContext.

Here is the caller graph for this function:

virtual std::pair<char, bool> Compiler::Context::getMemberType ( const std::string &  name,
const std::string &  id 
) const
pure virtual

Return type of member variable name in script id or in script of reference of id

Returns
first: 'l: long, 's': short, 'f': float, ' ': does not exist. second: true: script of reference

Implemented in MWScript::CompilerContext, and CSMWorld::ScriptContext.

Here is the caller graph for this function:

virtual bool Compiler::Context::isId ( const std::string &  name) const
pure virtual

Does name match an ID, that can be referenced?

Implemented in MWScript::CompilerContext, and CSMWorld::ScriptContext.

Here is the caller graph for this function:

virtual bool Compiler::Context::isJournalId ( const std::string &  name) const
pure virtual

Does name match a journal ID?

Implemented in MWScript::CompilerContext, and CSMWorld::ScriptContext.

void Compiler::Context::setExtensions ( const Extensions extensions = 0)
inline

Here is the caller graph for this function:

Member Data Documentation

const Extensions* Compiler::Context::mExtensions
private

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