44 VariableMap::iterator v =
_variables.find(var);
46 std::pair<VariableMap::iterator, bool> result;
57 VariableMap::const_iterator v =
_variables.find(var);
69 VariableMap::iterator v =
_variables.find(var);
A class holding an UTF-8 string.
bool hasVariable(const Common::UString &var) const
Exception that provides a stack of explanations.
Basic exceptions to throw.
const char * c_str() const
Return the (utf8 encoded) string data.
Variable & getVariable(const Common::UString &var, Type type=kTypeVoid)
void removeVariable(const Common::UString &var)
An NWScript variable container.
void setVariable(const Common::UString &var, const Variable &value)
virtual ~VariableContainer()