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 Member Functions | Private Attributes | Friends | List of all members
game_logic::formula_expression Class Referenceabstract

#include <function.hpp>

Inheritance diagram for game_logic::formula_expression:
Inheritance graph

Public Member Functions

 formula_expression ()
 
virtual ~formula_expression ()
 
variant evaluate (const formula_callable &variables, formula_debugger *fdb=nullptr) 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=nullptr) const =0
 

Private Attributes

const char * name_
 

Friends

class formula_debugger
 

Detailed Description

Definition at line 24 of file function.hpp.

Constructor & Destructor Documentation

game_logic::formula_expression::formula_expression ( )
inline

Definition at line 26 of file function.hpp.

virtual game_logic::formula_expression::~formula_expression ( )
inlinevirtual

Definition at line 27 of file function.hpp.

Member Function Documentation

variant game_logic::formula_expression::evaluate ( const formula_callable variables,
formula_debugger fdb = nullptr 
) const
inline

Definition at line 28 of file function.hpp.

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

virtual variant game_logic::formula_expression::execute ( const formula_callable variables,
formula_debugger fdb = nullptr 
) const
privatepure virtual
const char* game_logic::formula_expression::get_name ( ) const
inline

Definition at line 38 of file function.hpp.

References name_.

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

Definition at line 36 of file function.hpp.

References name_.

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

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

Friends And Related Function Documentation

friend class formula_debugger
friend

Definition at line 43 of file function.hpp.

Member Data Documentation

const char* game_logic::formula_expression::name_
private

Definition at line 42 of file function.hpp.

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


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