Public Member Functions | Private Member Functions | Private Attributes | Friends

game_logic::formula_expression Class Reference

#include <formula_function.hpp>

Inheritance diagram for game_logic::formula_expression:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 formula_expression ()
virtual ~formula_expression ()
variant evaluate (const formula_callable &variables, formula_debugger *fdb=NULL) const
void set_name (const char *name)
const char * get_name () const
virtual std::string str () const =0

Private Member Functions

virtual variant execute (const formula_callable &variables, formula_debugger *fdb=NULL) const =0

Private Attributes

const char * name_

Friends

class formula_debugger

Detailed Description

Definition at line 25 of file formula_function.hpp.


Constructor & Destructor Documentation

game_logic::formula_expression::formula_expression (  )  [inline]

Definition at line 27 of file formula_function.hpp.

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

Definition at line 28 of file formula_function.hpp.


Member Function Documentation

variant game_logic::formula_expression::evaluate ( const formula_callable variables,
formula_debugger fdb = NULL 
) const [inline]

Definition at line 29 of file formula_function.hpp.

References game_logic::evaluate_arg_callback(), execute(), and name_.

Here is the call graph for this function:

virtual variant game_logic::formula_expression::execute ( const formula_callable variables,
formula_debugger fdb = NULL 
) const [private, pure virtual]

Implemented in game_logic::formula_function_expression, and game_logic::wrapper_formula.

Referenced by evaluate(), and game_logic::formula_debugger::evaluate_arg_callback().

Here is the caller graph for this function:

const char* game_logic::formula_expression::get_name (  )  const [inline]

Definition at line 39 of file formula_function.hpp.

References name_.

Referenced by game_logic::function_expression::str().

Here is the caller graph for this function:

void game_logic::formula_expression::set_name ( const char *  name  )  [inline]

Definition at line 37 of file formula_function.hpp.

References name_.

Referenced by game_logic::function_expression::function_expression().

Here is the caller graph for this function:

virtual std::string game_logic::formula_expression::str (  )  const [pure virtual]

Implemented in game_logic::function_expression, and game_logic::wrapper_formula.

Referenced by game_logic::formula_debugger::evaluate_arg_callback().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class formula_debugger [friend]

Definition at line 44 of file formula_function.hpp.


Member Data Documentation

Reimplemented in game_logic::function_expression.

Definition at line 43 of file formula_function.hpp.

Referenced by evaluate(), get_name(), and set_name().


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

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