The Battle for Wesnoth  1.19.5+dev
callable_fwd.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2024
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 
22 namespace wfl
23 {
24 class formula_callable;
25 class formula_debugger;
26 
28  virtual void notify_dead() {}
30 };
31 
33 
34 struct formula_input {
36  : name(name), access(access) {}
37 
38  std::string name;
40 };
41 
42 using formula_input_vector = std::vector<formula_input>;
43 using formula_callable_ptr = std::shared_ptr<formula_callable>;
44 using const_formula_callable_ptr = std::shared_ptr<const formula_callable>;
45 using formula_seen_stack = std::vector<const_formula_callable_ptr>;
46 
47 }
Definition: contexts.hpp:43
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
formula_access access
formula_input(const std::string &name, formula_access access=formula_access::read_write)