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

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 156 of file formula_callable.hpp.


Member Typedef Documentation

Definition at line 164 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 32 of file formula.cpp.


Member Function Documentation

map_formula_callable & game_logic::map_formula_callable::add ( const std::string &  key,
const variant value 
)
const_iterator game_logic::map_formula_callable::begin (  )  const [inline]

Definition at line 166 of file formula_callable.hpp.

References values_.

Referenced by ai::formula_ai::to_config().

Here is the caller graph for this function:

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

Definition at line 162 of file formula_callable.hpp.

References values_.

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

Definition at line 161 of file formula_callable.hpp.

References values_.

Referenced by ai::formula_ai::to_config().

Here is the caller graph for this function:

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

Definition at line 167 of file formula_callable.hpp.

References values_.

Referenced by ai::formula_ai::to_config().

Here is the caller graph for this function:

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

Reimplemented from game_logic::formula_callable.

Definition at line 52 of file formula.cpp.

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

Implements game_logic::formula_callable.

Definition at line 46 of file formula.cpp.

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

Definition at line 160 of file formula_callable.hpp.

References fallback_.

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

Here is the caller graph for this function:

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 62 of file formula.cpp.


Member Data Documentation

Definition at line 174 of file formula_callable.hpp.

Referenced by set_fallback().

std::map<std::string,variant> game_logic::map_formula_callable::values_ [private]

Definition at line 173 of file formula_callable.hpp.

Referenced by begin(), clear(), empty(), and end().


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