The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
game_logic::function_symbol_table Class Reference

#include <function.hpp>

Inheritance diagram for game_logic::function_symbol_table:
Inheritance graph

Public Member Functions

void add_function (const std::string &name, formula_function_ptr fcn)
 
expression_ptr create_function (const std::string &fn, const std::vector< expression_ptr > &args) const
 
std::vector< std::stringget_function_names () const
 
bool empty ()
 

Private Attributes

functions_map custom_formulas_
 

Detailed Description

Definition at line 136 of file function.hpp.

Member Function Documentation

void game_logic::function_symbol_table::add_function ( const std::string name,
formula_function_ptr  fcn 
)

Definition at line 1531 of file function.cpp.

References custom_formulas_.

Referenced by ai::formula_ai::add_formula_function().

expression_ptr game_logic::function_symbol_table::create_function ( const std::string fn,
const std::vector< expression_ptr > &  args 
) const

Definition at line 1536 of file function.cpp.

References custom_formulas_.

Referenced by game_logic::create_function().

bool game_logic::function_symbol_table::empty ( )
inline

Definition at line 142 of file function.hpp.

std::vector< std::string > game_logic::function_symbol_table::get_function_names ( ) const

Definition at line 1546 of file function.cpp.

References custom_formulas_.

Member Data Documentation

functions_map game_logic::function_symbol_table::custom_formulas_
private

Definition at line 137 of file function.hpp.

Referenced by add_function(), create_function(), and get_function_names().


The documentation for this class was generated from the following files: