Classes | Namespaces | Defines | Functions | Variables

variable.cpp File Reference

Manage WML-variables. More...

#include "global.hpp"
#include "variable.hpp"
#include "foreach.hpp"
#include "formula_string_utils.hpp"
#include "gamestatus.hpp"
#include "log.hpp"
#include "resources.hpp"
#include "unit.hpp"
#include "unit_map.hpp"
#include "team.hpp"
#include <boost/variant.hpp>
Include dependency graph for variable.cpp:

Go to the source code of this file.

Classes

struct  vconfig_expand_visitor

Namespaces

namespace  variable

Defines

#define LOG_NG   LOG_STREAM(info, log_engine)
#define WRN_NG   LOG_STREAM(warn, log_engine)
#define ERR_NG   LOG_STREAM(err, log_engine)
#define repos   (resources::state_of_game)

Functions

static const std::string * get_hash_of (const config *cp)
static void increment_config_usage (const config *&key)
static void decrement_config_usage (const config *key)

Variables

static lg::log_domain log_engine ("engine")

Detailed Description

Manage WML-variables.

Definition in file variable.cpp.


Define Documentation

#define ERR_NG   LOG_STREAM(err, log_engine)
#define LOG_NG   LOG_STREAM(info, log_engine)
#define repos   (resources::state_of_game)
#define WRN_NG   LOG_STREAM(warn, log_engine)

Definition at line 40 of file variable.cpp.

Referenced by vconfig::get_parsed_config(), and variable_info::variable_info().


Function Documentation

static void decrement_config_usage ( const config key  )  [static]

Definition at line 154 of file variable.cpp.

References get_hash_of().

Referenced by vconfig::operator=(), and vconfig::~vconfig().

Here is the call graph for this function:

Here is the caller graph for this function:

static const std::string* get_hash_of ( const config cp  )  [static]

Definition at line 112 of file variable.cpp.

References config::hash().

Referenced by decrement_config_usage(), and increment_config_usage().

Here is the call graph for this function:

Here is the caller graph for this function:

static void increment_config_usage ( const config *&  key  )  [static]

Definition at line 131 of file variable.cpp.

References get_hash_of().

Referenced by vconfig::operator=(), and vconfig::vconfig().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

lg::log_domain log_engine("engine") [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:11:06 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs