The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
null_unit_filter_impl Class Reference

Null unit filter is built when the input config is null. More...

Inheritance diagram for null_unit_filter_impl:
Inheritance graph

Public Member Functions

 null_unit_filter_impl (const filter_context &fc)
 
virtual bool matches (const unit &, const map_location &, const unit *) const
 
virtual std::vector< const unit * > all_matches_on_map (unsigned max_matches) const
 
virtual unit_const_ptr first_match_on_map () const
 
virtual ~null_unit_filter_impl ()
 
config to_config () const
 
bool empty () const
 
- Public Member Functions inherited from unit_filter_abstract_impl
virtual ~unit_filter_abstract_impl ()
 

Private Attributes

const filter_contextfc_
 

Detailed Description

Null unit filter is built when the input config is null.

Definition at line 79 of file filter.cpp.

Constructor & Destructor Documentation

null_unit_filter_impl::null_unit_filter_impl ( const filter_context fc)
inline

Definition at line 81 of file filter.cpp.

virtual null_unit_filter_impl::~null_unit_filter_impl ( )
inlinevirtual

Definition at line 102 of file filter.cpp.

Member Function Documentation

virtual std::vector<const unit *> null_unit_filter_impl::all_matches_on_map ( unsigned  max_matches) const
inlinevirtual
bool null_unit_filter_impl::empty ( ) const
inlinevirtual

Reimplemented from unit_filter_abstract_impl.

Definition at line 108 of file filter.cpp.

virtual unit_const_ptr null_unit_filter_impl::first_match_on_map ( ) const
inlinevirtual
virtual bool null_unit_filter_impl::matches ( const unit ,
const map_location ,
const unit  
) const
inlinevirtual

Implements unit_filter_abstract_impl.

Definition at line 82 of file filter.cpp.

config null_unit_filter_impl::to_config ( ) const
inlinevirtual

Implements unit_filter_abstract_impl.

Definition at line 104 of file filter.cpp.

Member Data Documentation

const filter_context& null_unit_filter_impl::fc_
private

Definition at line 113 of file filter.cpp.

Referenced by all_matches_on_map(), and first_match_on_map().


The documentation for this class was generated from the following file: