dfool::arithmetic_evaluator Class Reference

#include <ai_dfool.hpp>

Inheritance diagram for dfool::arithmetic_evaluator:

Inheritance graph
[legend]
Collaboration diagram for dfool::arithmetic_evaluator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 arithmetic_evaluator (const game_state &s, std::map< std::string, evaluator * > *m)
std::string value (const std::string &s)

Private Member Functions

std::list< std::string > parse_tokens (const std::string &)
std::string evaluate_tokens (std::list< std::string > &)


Detailed Description

Definition at line 77 of file ai_dfool.hpp.


Constructor & Destructor Documentation

dfool::arithmetic_evaluator::arithmetic_evaluator ( const game_state s,
std::map< std::string, evaluator * > *  m 
) [inline]

Definition at line 79 of file ai_dfool.hpp.


Member Function Documentation

std::string dfool::arithmetic_evaluator::value ( const std::string &  s  )  [virtual]

Reimplemented from dfool::evaluator.

Reimplemented in dfool::distance_evaluator.

Definition at line 479 of file ai_dfool.cpp.

References evaluate_tokens(), parse_tokens(), and value.

Referenced by parse_tokens().

std::list< std::string > dfool::arithmetic_evaluator::parse_tokens ( const std::string &  s  )  [private]

Reimplemented in dfool::distance_evaluator.

Definition at line 551 of file ai_dfool.cpp.

References utils::paranthetical_split(), size, and value().

Referenced by value().

std::string dfool::arithmetic_evaluator::evaluate_tokens ( std::list< std::string > &  tlist  )  [private]

Reimplemented in dfool::distance_evaluator.

Definition at line 494 of file ai_dfool.cpp.

References a, b, and r.

Referenced by value().


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