75 assert(!exactType.
empty());
137 assert(!exactType.
empty());
175 throw Common::Exception(
"Can't assign a boolean value to a non-boolean variable");
230 throw Common::Exception(
"Can't assign a function value to a non-function variable");
233 *
_value._function = value;
276 return !(*
this == var);
289 throw Common::Exception(
"Can't get a boolean value from a non-boolean variable");
345 throw Common::Exception(
"Can't get a function value from a non-function variable");
353 throw Common::Exception(
"Can't get a raw usertype value from a non-usertype variable");
void * getRawUserType() const
A class holding an UTF-8 string.
A reference to a Lua function.
const FunctionRef & getFunction() const
void setType(Type type, const Common::UString &exactType="")
bool operator==(const Variable &var) const
Common::UString _exactType
Basic exceptions to throw.
Common::UString & getString()
union Aurora::Lua::Variable::@5 _value
bool empty() const
Is the string empty?
Variable & operator=(const Variable &var)
Variable(Type type, const Common::UString &exactType="")
A reference to a Lua function.
const Common::UString & getExactType() const
A reference to a Lua table.
A reference to a Lua table.
Common::UString * _string
bool operator!=(const Variable &var) const