15 #ifndef VARIANT_HPP_INCLUDED
16 #define VARIANT_HPP_INCLUDED
18 #include <boost/shared_ptr.hpp>
25 class formula_callable;
66 explicit variant(std::map<variant,variant>* map);
94 const std::vector<variant>&
as_list()
const;
95 const std::map<variant,variant>&
as_map()
const;
bool operator<(const variant &) const
size_t num_elements() const
variant operator^(const variant &) const
variant operator*(const variant &) const
variant build_range(const variant &v) const
variant operator/(const variant &) const
std::vector< variant >::iterator list_iterator_
game_logic::formula_callable * mutable_callable() const
const game_logic::formula_callable * as_callable() const
void must_be(TYPE t) const
variant_iterator end() const
const std::map< variant, variant > & as_map() const
bool contains(const variant &other) const
variant list_elements_sub(const variant &v) const
variant list_elements_mul(const variant &v) const
const game_logic::formula_callable * callable_
call_stack_manager(const char *str)
void push_call_stack(const char *str)
type_error(const std::string &str)
bool operator<=(const variant &) const
variant list_elements_add(const variant &v) const
game_logic::formula_callable * mutable_callable_
T * try_convert_variant(const variant &v)
variant list_elements_div(const variant &v) const
bool operator>(const variant &) const
std::map< variant, variant >::iterator map_iterator_
std::bidirectional_iterator_tag iterator_category
std::string string_cast() const
Iterator class for the variant.
void serialize_to_string(std::string &str) const
variant operator*() const
variant concatenate(const variant &v) const
variant_iterator begin() const
std::string get_call_stack()
variant & operator=(const variant &v)
const std::string & as_string() const
bool operator==(const variant &) const
variant_iterator & operator--()
variant operator%(const variant &) const
variant operator+(const variant &) const
bool operator!=(const variant_iterator &that) const
void increment_refcount()
variant_iterator()
Constructor for a TYPE_NULL variant.
std::string to_debug_string(std::vector< const game_logic::formula_callable * > *seen=nullptr, bool verbose=false) const
Base class for all the errors encountered by the engine.
variant get_values() const
const std::vector< variant > & as_list() const
variant get_member(const std::string &str) const
void serialize_from_string(const std::string &str)
variant operator-() const
variant_iterator & operator=(const variant_iterator &that)
variant_iterator & operator++()
GLsizei const GLcharARB ** string
variant operator[](size_t n) const
T * convert_variant(const variant &v)
std::string type_string() const
bool operator>=(const variant &) const
bool operator!=(const variant &) const
bool operator==(const variant_iterator &that) const