The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Typedefs | Functions | Variables
minimap.cpp File Reference
#include "gui/widgets/minimap.hpp"
#include "gui/core/log.hpp"
#include "gui/core/widget_definition.hpp"
#include "gui/core/window_builder.hpp"
#include "gui/core/register_widget.hpp"
#include "gui/widgets/settings.hpp"
#include "map/map.hpp"
#include "map/exception.hpp"
#include "terrain/type_data.hpp"
#include "../../minimap.hpp"
#include "utils/functional.hpp"
#include <boost/make_shared.hpp>
#include <algorithm>
Include dependency graph for minimap.cpp:

Go to the source code of this file.

Classes

struct  gui2::tkey
 Key type for the cache. More...
 
struct  gui2::tvalue
 Value type for the cache. More...
 

Namespaces

 gui2
 A class inherited from ttext_box that displays its input as stars.
 
 gui2::implementation
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_CF   LOG_STREAM_INDENT(err, log_config)
 
#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__
 
#define LOG_HEADER   LOG_SCOPE_HEADER + ':'
 

Typedefs

typedef std::map< tkey, tvalue > gui2::tcache
 The cache. More...
 

Functions

static bool gui2::operator< (const tkey &lhs, const tkey &rhs)
 
static bool gui2::compare (const std::pair< unsigned, tcache::iterator > &lhs, const std::pair< unsigned, tcache::iterator > &rhs)
 
static void gui2::shrink_cache ()
 

Variables

static lg::log_domain log_config ("config")
 
static const size_t gui2::cache_max_size = 100
 Maximum number of items in the cache (multiple of 4). More...
 
static const ::configgui2::terrain = nullptr
 The terrain used to create the cache. More...
 
static tcache gui2::cache
 

Macro Definition Documentation

#define ERR_CF   LOG_STREAM_INDENT(err, log_config)

Definition at line 35 of file minimap.cpp.

Referenced by gui2::tminimap::get_image().

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 15 of file minimap.cpp.

#define LOG_HEADER   LOG_SCOPE_HEADER + ':'

Definition at line 38 of file minimap.cpp.

Referenced by gui2::tminimap::impl_draw_background().

#define LOG_SCOPE_HEADER   get_control_type() + " [" + id() + "] " + __func__

Definition at line 37 of file minimap.cpp.

Variable Documentation

lg::log_domain log_config("config")
static