Public Types | Public Member Functions | Protected Member Functions | Private Attributes

game_logic::function_expression Class Reference

#include <formula_function.hpp>

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

List of all members.

Public Types

typedef std::vector
< expression_ptr
args_list

Public Member Functions

 function_expression (const std::string &name, const args_list &args, int min_args=-1, int max_args=-1)
virtual std::string str () const

Protected Member Functions

const args_listargs () const

Private Attributes

std::string name_
args_list args_

Detailed Description

Definition at line 49 of file formula_function.hpp.


Member Typedef Documentation

Definition at line 51 of file formula_function.hpp.


Constructor & Destructor Documentation

game_logic::function_expression::function_expression ( const std::string &  name,
const args_list args,
int  min_args = -1,
int  max_args = -1 
) [inline, explicit]

Definition at line 52 of file formula_function.hpp.

References args_, and game_logic::formula_expression::set_name().

Here is the call graph for this function:


Member Function Documentation

const args_list& game_logic::function_expression::args (  )  const [inline, protected]

Definition at line 69 of file formula_function.hpp.

References args_.

Referenced by game_logic::formula_function_expression::execute(), and str().

Here is the caller graph for this function:

std::string game_logic::function_expression::str (  )  const [virtual]

Implements game_logic::formula_expression.

Definition at line 43 of file formula_function.cpp.

References args(), and game_logic::formula_expression::get_name().

Here is the call graph for this function:


Member Data Documentation

Definition at line 72 of file formula_function.hpp.

Referenced by args(), and function_expression().

Reimplemented from game_logic::formula_expression.

Definition at line 71 of file formula_function.hpp.


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:00 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs