The Battle for Wesnoth  1.15.6+dev
Public Member Functions | Public Attributes | List of all members
unit_filter_impl::unit_filter_compound Struct Reference

#include <filter.hpp>

Inheritance diagram for unit_filter_impl::unit_filter_compound:
Inheritance graph

Public Member Functions

 unit_filter_compound (vconfig cfg)
 
template<typename C , typename F >
void create_attribute (const config::attribute_value c, C conv, F func)
 
template<typename F >
void create_child (const vconfig &c, F func)
 
void fill (vconfig cfg)
 
virtual bool matches (const unit_filter_args &u) const override
 
bool filter_impl (const unit_filter_args &u) const
 
- Public Member Functions inherited from unit_filter_impl::unit_filter_base
virtual ~unit_filter_base ()
 

Public Attributes

std::vector< std::shared_ptr< unit_filter_base > > children_
 
std::vector< std::pair< CONDITIONAL_TYPE, unit_filter_compound > > cond_children_
 

Detailed Description

Definition at line 90 of file filter.hpp.

Constructor & Destructor Documentation

◆ unit_filter_compound()

unit_filter_compound::unit_filter_compound ( vconfig  cfg)

Definition at line 220 of file filter.cpp.

References fill().

Member Function Documentation

◆ create_attribute()

template<typename C , typename F >
void unit_filter_compound::create_attribute ( const config::attribute_value  c,
conv,
func 
)

◆ create_child()

template<typename F >
void unit_filter_compound::create_child ( const vconfig c,
func 
)

Definition at line 273 of file filter.cpp.

References children_.

Referenced by fill().

◆ fill()

void unit_filter_compound::fill ( vconfig  cfg)

◆ filter_impl()

bool unit_filter_compound::filter_impl ( const unit_filter_args u) const

Definition at line 262 of file filter.cpp.

References children_.

Referenced by matches().

◆ matches()

bool unit_filter_compound::matches ( const unit_filter_args u) const
overridevirtual

Member Data Documentation

◆ children_

std::vector<std::shared_ptr<unit_filter_base> > unit_filter_impl::unit_filter_compound::children_

Definition at line 104 of file filter.hpp.

Referenced by create_attribute(), create_child(), fill(), and filter_impl().

◆ cond_children_

std::vector<std::pair<CONDITIONAL_TYPE, unit_filter_compound> > unit_filter_impl::unit_filter_compound::cond_children_

Definition at line 105 of file filter.hpp.

Referenced by fill(), and matches().


The documentation for this struct was generated from the following files: