The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Functions | Variables
filter.cpp File Reference
#include "units/filter.hpp"
#include "global.hpp"
#include "log.hpp"
#include "config.hpp"
#include "display_context.hpp"
#include "filter_context.hpp"
#include "game_data.hpp"
#include "utils/make_enum.hpp"
#include "map/map.hpp"
#include "map/location.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "side_filter.hpp"
#include "team.hpp"
#include "terrain/filter.hpp"
#include "tod_manager.hpp"
#include "units/unit.hpp"
#include "units/formula_manager.hpp"
#include "units/map.hpp"
#include "units/types.hpp"
#include "variable.hpp"
#include "wml_exception.hpp"
#include "formula/callable_objects.hpp"
#include "formula/formula.hpp"
#include <boost/optional.hpp>
#include <boost/make_shared.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
Include dependency graph for filter.cpp:

Go to the source code of this file.

Classes

class  null_unit_filter_impl
 Null unit filter is built when the input config is null. More...
 
class  basic_unit_filter_impl
 The basic unit filter gives a generic implementation of the match fcn. More...
 

Namespaces

 conditional
 This enum helps to evaluate conditional filters.
 

Macros

#define ERR_CF   LOG_STREAM(err, log_config)
 
#define DBG_CF   LOG_STREAM(debug, log_config)
 

Functions

static boost::shared_ptr
< unit_filter_abstract_impl
construct (const vconfig &vcfg, const filter_context &fc, bool flat_tod)
 Forward declare the "construct" method which constructs an appropriate filter impl. More...
 

Variables

static lg::log_domain log_config ("config")
 

Macro Definition Documentation

#define DBG_CF   LOG_STREAM(debug, log_config)

Definition at line 49 of file filter.cpp.

Referenced by basic_unit_filter_impl::basic_unit_filter_impl().

#define ERR_CF   LOG_STREAM(err, log_config)

Definition at line 48 of file filter.cpp.

Function Documentation

static boost::shared_ptr< unit_filter_abstract_impl > construct ( const vconfig vcfg,
const filter_context fc,
bool  flat_tod 
)
static

Forward declare the "construct" method which constructs an appropriate filter impl.

"Factory" method which constructs an appropriate implementation

Definition at line 195 of file filter.cpp.

References config::all_children_count(), config::attribute_count(), vconfig::empty(), vconfig::get_config(), and vconfig::has_attribute().

Referenced by unit_filter::unit_filter().

Variable Documentation

lg::log_domain log_config("config")
static