The Battle for Wesnoth  1.19.23+dev
Classes | Namespaces | Typedefs | Functions
callable.hpp File Reference
#include "formula/callable_fwd.hpp"
#include "formula/variant.hpp"
#include "log.hpp"
#include <memory>
#include <set>
Include dependency graph for callable.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wfl::formula_callable
 
class  wfl::action_callable
 
class  wfl::formula_callable_with_backup
 
class  wfl::formula_variant_callable_with_backup
 
class  wfl::map_formula_callable
 

Namespaces

 wfl
 

Typedefs

using wfl::map_formula_callable_ptr = std::shared_ptr< map_formula_callable >
 
using wfl::const_map_formula_callable_ptr = std::shared_ptr< const map_formula_callable >
 

Functions

template<typename T , typename... Args>
variant wfl::make_callable (Args &&... args)
 
template<typename T >
auto wfl::callable_cast (const variant &v) -> std::enable_if_t< std::is_pointer_v< T >, std::shared_ptr< const std::remove_pointer_t< T >>>