game_logic::map_formula_callable Class Reference

#include <formula_callable.hpp>

Inheritance diagram for game_logic::map_formula_callable:

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

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< std::string,
variant >::const_iterator 
const_iterator

Public Member Functions

 map_formula_callable (const formula_callable *fallback=NULL)
map_formula_callableadd (const std::string &key, const variant &value)
void set_fallback (const formula_callable *fallback)
bool empty () const
void clear ()
const_iterator begin () const
const_iterator end () const

Private Member Functions

variant get_value (const std::string &key) const
void get_inputs (std::vector< formula_input > *inputs) const
void set_value (const std::string &key, const variant &value)

Private Attributes

std::map< std::string, variantvalues_
const formula_callablefallback_


Detailed Description

Definition at line 142 of file formula_callable.hpp.


Member Typedef Documentation

Definition at line 150 of file formula_callable.hpp.


Constructor & Destructor Documentation

game_logic::map_formula_callable::map_formula_callable ( const formula_callable fallback = NULL  )  [explicit]

Definition at line 36 of file formula.cpp.


Member Function Documentation

map_formula_callable & game_logic::map_formula_callable::add ( const std::string &  key,
const variant value 
)

void game_logic::map_formula_callable::set_fallback ( const formula_callable fallback  )  [inline]

Definition at line 146 of file formula_callable.hpp.

References fallback_.

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

bool game_logic::map_formula_callable::empty (  )  const [inline]

Definition at line 147 of file formula_callable.hpp.

References values_.

void game_logic::map_formula_callable::clear ( void   )  [inline]

Definition at line 148 of file formula_callable.hpp.

References values_.

const_iterator game_logic::map_formula_callable::begin (  )  const [inline]

Definition at line 152 of file formula_callable.hpp.

References values_.

Referenced by game_logic::parse_function_args().

const_iterator game_logic::map_formula_callable::end (  )  const [inline]

Definition at line 153 of file formula_callable.hpp.

References values_.

Referenced by game_logic::parse_function_args().

variant game_logic::map_formula_callable::get_value ( const std::string &  key  )  const [private, virtual]

void game_logic::map_formula_callable::get_inputs ( std::vector< formula_input > *  inputs  )  const [private, virtual]

void game_logic::map_formula_callable::set_value ( const std::string &  key,
const variant value 
) [private, virtual]

Reimplemented from game_logic::formula_callable.

Definition at line 63 of file formula.cpp.

References values_.


Member Data Documentation

Definition at line 159 of file formula_callable.hpp.

Referenced by add(), begin(), clear(), empty(), end(), get_inputs(), get_value(), and set_value().

Definition at line 160 of file formula_callable.hpp.

Referenced by get_inputs(), get_value(), and set_fallback().


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

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