xoreos  0.0.5
Public Member Functions | Private Types | Private Attributes | List of all members
Aurora::NWScript::VariableContainer Class Reference

#include <variablecontainer.h>

Inheritance diagram for Aurora::NWScript::VariableContainer:
Inheritance graph
Collaboration diagram for Aurora::NWScript::VariableContainer:
Collaboration graph

Public Member Functions

 VariableContainer ()
virtual ~VariableContainer ()
bool hasVariable (const Common::UString &var) const
VariablegetVariable (const Common::UString &var, Type type=kTypeVoid)
const VariablegetVariable (const Common::UString &var) const
void setVariable (const Common::UString &var, const Variable &value)
void removeVariable (const Common::UString &var)
void clearVariables ()

Private Types

typedef std::map< Common::UString, VariableVariableMap

Private Attributes

VariableMap _variables

Detailed Description

Definition at line 38 of file variablecontainer.h.

Member Typedef Documentation

◆ VariableMap

Definition at line 54 of file variablecontainer.h.

Constructor & Destructor Documentation

◆ VariableContainer()

Aurora::NWScript::VariableContainer::VariableContainer ( )

Definition at line 33 of file variablecontainer.cpp.

◆ ~VariableContainer()

Aurora::NWScript::VariableContainer::~VariableContainer ( )

Definition at line 36 of file variablecontainer.cpp.

Member Function Documentation

◆ clearVariables()

void Aurora::NWScript::VariableContainer::clearVariables ( )

Definition at line 74 of file variablecontainer.cpp.

References _variables.

Referenced by Engines::NWN2::Campaign::unload(), and Engines::NWN::Module::unloadModule().

Here is the caller graph for this function:

◆ getVariable() [1/2]

Variable & Aurora::NWScript::VariableContainer::getVariable ( const Common::UString var,
Type  type = kTypeVoid 

◆ getVariable() [2/2]

const Variable & Aurora::NWScript::VariableContainer::getVariable ( const Common::UString var) const

Definition at line 56 of file variablecontainer.cpp.

References _variables, and Common::UString::c_str().

Here is the call graph for this function:

◆ hasVariable()

bool Aurora::NWScript::VariableContainer::hasVariable ( const Common::UString var) const

◆ removeVariable()

void Aurora::NWScript::VariableContainer::removeVariable ( const Common::UString var)

Definition at line 68 of file variablecontainer.cpp.

References _variables.

◆ setVariable()

void Aurora::NWScript::VariableContainer::setVariable ( const Common::UString var,
const Variable value 

Member Data Documentation

◆ _variables

VariableMap Aurora::NWScript::VariableContainer::_variables

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