The Battle for Wesnoth  1.19.23+dev
Classes | Namespaces | Macros | Functions
variant_value.hpp File Reference
#include "formula/callable_fwd.hpp"
#include "formula_variant.hpp"
#include "utils/any.hpp"
#include "utils/general.hpp"
#include <functional>
#include <map>
#include <vector>
#include <boost/range/iterator_range.hpp>
Include dependency graph for variant_value.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wfl::variant_value_base
 Base class for all variant types. More...
 
class  wfl::variant_numeric
 Base class for numeric variant values. More...
 
class  wfl::variant_int
 
class  wfl::variant_decimal
 
class  wfl::variant_callable
 
class  wfl::variant_string
 
class  wfl::variant_container< Container >
 Generalized interface for container variants. More...
 
class  wfl::variant_list
 
class  wfl::variant_map
 

Namespaces

 utils
 
 wfl
 

Macros

#define IMPLEMENT_VALUE_TYPE(value)
 

Functions

template<typename To , typename From >
To & utils::cast_as (To &, From &value)
 

Macro Definition Documentation

◆ IMPLEMENT_VALUE_TYPE

#define IMPLEMENT_VALUE_TYPE (   value)
Value:
static constexpr auto value_type = value; \
formula_variant::type get_type() const override \
{ \
return value_type; \
}

Definition at line 43 of file variant_value.hpp.