Public Member Functions | Private Attributes

game_logic::function_symbol_table Class Reference

#include <formula_function.hpp>

Inheritance diagram for game_logic::function_symbol_table:
Inheritance graph
[legend]
Collaboration diagram for game_logic::function_symbol_table:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 function_symbol_table ()
virtual ~function_symbol_table ()
virtual void add_formula_function (const std::string &name, const_formula_ptr formula, const_formula_ptr precondition, const std::vector< std::string > &args)
virtual expression_ptr create_function (const std::string &fn, const std::vector< expression_ptr > &args) const
std::vector< std::string > get_function_names () const

Private Attributes

std::map< std::string,
formula_function
custom_formulas_

Detailed Description

Definition at line 119 of file formula_function.hpp.


Constructor & Destructor Documentation

game_logic::function_symbol_table::function_symbol_table (  )  [inline]

Definition at line 122 of file formula_function.hpp.

virtual game_logic::function_symbol_table::~function_symbol_table (  )  [inline, virtual]

Definition at line 127 of file formula_function.hpp.


Member Function Documentation

void game_logic::function_symbol_table::add_formula_function ( const std::string &  name,
const_formula_ptr  formula,
const_formula_ptr  precondition,
const std::vector< std::string > &  args 
) [virtual]

Definition at line 1090 of file formula_function.cpp.

References custom_formulas_.

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

Here is the caller graph for this function:

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

Reimplemented in game_logic::ai_function_symbol_table.

Definition at line 1095 of file formula_function.cpp.

References custom_formulas_.

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

Definition at line 1105 of file formula_function.cpp.

References custom_formulas_.


Member Data Documentation

Definition at line 120 of file formula_function.hpp.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:01 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs