The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
callable_fwd.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2008 - 2025
3 by David White <dave@whitevine.net>
4 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY.
12
13 See the COPYING file for more details.
14*/
15
16#pragma once
17
18#include <memory>
19#include <vector>
20#include <string>
21
22namespace wfl
23{
24class formula_callable;
25class formula_debugger;
26
28 virtual void notify_dead() {}
30};
31
33
41
42using formula_input_vector = std::vector<formula_input>;
43using formula_callable_ptr = std::shared_ptr<formula_callable>;
44using const_formula_callable_ptr = std::shared_ptr<const formula_callable>;
45using formula_seen_stack = std::vector<const_formula_callable_ptr>;
46
47}
std::vector< const_formula_callable_ptr > formula_seen_stack
std::vector< formula_input > formula_input_vector
std::shared_ptr< const formula_callable > const_formula_callable_ptr
std::shared_ptr< formula_callable > formula_callable_ptr
formula_access access
formula_input(const std::string &name, formula_access access=formula_access::read_write)