The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
callable_fwd.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2017 by David White <dave@whitevine.net>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 #include <memory>
18 #include <vector>
19 #include <string>
20 
21 namespace wfl
22 {
23 class formula_callable;
24 class formula_debugger;
25 
27  virtual void notify_dead() {}
29 };
30 
32 
33 struct formula_input {
35  : name(name), access(access) {}
36 
39 };
40 
41 using formula_input_vector = std::vector<formula_input>;
42 using formula_callable_ptr = std::shared_ptr<formula_callable>;
43 using const_formula_callable_ptr = std::shared_ptr<const formula_callable>;
44 using formula_seen_stack = std::vector<const_formula_callable_ptr>;
45 
46 }
std::vector< char_t > string
std::vector< formula_input > formula_input_vector
formula_input(const std::string &name, FORMULA_ACCESS_TYPE access=FORMULA_READ_WRITE)
std::shared_ptr< formula_callable > formula_callable_ptr
FORMULA_ACCESS_TYPE access
FORMULA_ACCESS_TYPE
std::vector< const_formula_callable_ptr > formula_seen_stack
std::shared_ptr< const formula_callable > const_formula_callable_ptr
Definition: contexts.hpp:42