The Battle for Wesnoth  1.19.5+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:

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::type, unit_filter_compound > > cond_children_
 

Detailed Description

Definition at line 82 of file filter.hpp.

Constructor & Destructor Documentation

◆ unit_filter_compound()

unit_filter_compound::unit_filter_compound ( vconfig  cfg)

Definition at line 225 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 278 of file filter.cpp.

References c, and children_.

◆ 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 267 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 96 of file filter.hpp.

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

◆ cond_children_

std::vector<std::pair<conditional_type::type, unit_filter_compound> > unit_filter_impl::unit_filter_compound::cond_children_

Definition at line 97 of file filter.hpp.

Referenced by matches().


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