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)

Protected Member Functions

const args_listargs () const

Private Attributes

std::string name_
args_list args_


Detailed Description

Definition at line 43 of file formula_function.hpp.


Member Typedef Documentation

Definition at line 45 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 46 of file formula_function.hpp.

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


Member Function Documentation

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

Definition at line 65 of file formula_function.hpp.

References args_.

Referenced by game_logic::formula_function_expression::execute().


Member Data Documentation

Reimplemented from game_logic::formula_expression.

Definition at line 67 of file formula_function.hpp.

Definition at line 68 of file formula_function.hpp.

Referenced by args(), and function_expression().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs