#include "global.hpp"
#include "gamestatus.hpp"
#include "log.hpp"
#include <cassert>
#include <iostream>
Go to the source code of this file.
Namespaces | |
namespace | variable |
Defines | |
#define | LOG_NG LOG_STREAM(info, engine) |
#define | WRN_NG LOG_STREAM(warn, engine) |
#define | ERR_NG LOG_STREAM(err, engine) |
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) |
void | activate_scope_variable (std::string var_name) |
Turns on any auto-stored variables. | |
Variables | |
game_state * | repos = NULL |
std::map< config const *, int > | config_cache |
std::map< std::string const *, config const * > | hash_to_cache |
std::map< config const *, std::string const * > | config_hashes |
config | empty_config |
hash_memory_manager | hash_memory |
bool | recursive_activation = false |
Definition in file variable.cpp.
#define ERR_NG LOG_STREAM(err, engine) |
Definition at line 32 of file variable.cpp.
#define LOG_NG LOG_STREAM(info, engine) |
Definition at line 30 of file variable.cpp.
#define WRN_NG LOG_STREAM(warn, engine) |
Definition at line 31 of file variable.cpp.
void @229::activate_scope_variable | ( | std::string | var_name | ) | [static] |
Turns on any auto-stored variables.
Definition at line 502 of file variable.cpp.
References game_state::scoped_variables.
Referenced by variable_info::variable_info().
static void decrement_config_usage | ( | const config * | key | ) | [static] |
Definition at line 133 of file variable.cpp.
References get_hash_of(), and hash_memory.
Referenced by vconfig::operator=(), and vconfig::~vconfig().
static const std::string* get_hash_of | ( | const config * | cp | ) | [static] |
Definition at line 91 of file variable.cpp.
References config::hash(), and hash_memory.
Referenced by decrement_config_usage(), and increment_config_usage().
static void increment_config_usage | ( | const config *& | key | ) | [static] |
Definition at line 110 of file variable.cpp.
References lg::config, and get_hash_of().
Referenced by vconfig::operator=(), and vconfig::vconfig().
std::map<config const *, int> config_cache [static] |
Definition at line 43 of file variable.cpp.
std::map<config const *, std::string const *> config_hashes [static] |
Definition at line 49 of file variable.cpp.
config empty_config [static] |
Definition at line 51 of file variable.cpp.
hash_memory_manager hash_memory [static] |
Definition at line 88 of file variable.cpp.
Referenced by decrement_config_usage(), get_hash_of(), and variable::manager::~manager().
std::map<std::string const *, config const *> hash_to_cache [static] |
Definition at line 46 of file variable.cpp.
std::set<std::string const*, compare_str_ptr> mem_ |
Definition at line 86 of file variable.cpp.
bool recursive_activation = false [static] |
Definition at line 499 of file variable.cpp.
game_state* repos = NULL [static] |
Definition at line 40 of file variable.cpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |