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 Member Functions | Private Attributes | List of all members
side_filter Class Reference

#include <side_filter.hpp>

Public Member Functions

 ~side_filter ()
 
 side_filter (const std::string &side_string, const filter_context *fc, bool flat_tod=false)
 
 side_filter (const vconfig &cfg, const filter_context *fc, bool flat_tod=false)
 
bool match (const team &t) const
 
bool match (const int side) const
 
std::vector< intget_teams () const
 

Private Member Functions

 side_filter (const side_filter &other)
 
side_filteroperator= (const side_filter &other)
 
bool match_internal (const team &t) const
 

Private Attributes

const vconfig cfg_
 
bool flat_
 
std::string side_string_
 
const filter_contextfc_
 The filter context for this filter. It should be a pointer because otherwise the default ctor doesn't work. More...
 
boost::scoped_ptr< unit_filterufilter_
 
boost::scoped_ptr< side_filterallied_filter_
 
boost::scoped_ptr< side_filterenemy_filter_
 
boost::scoped_ptr< side_filterhas_ally_filter_
 
boost::scoped_ptr< side_filterhas_enemy_filter_
 

Detailed Description

Definition at line 33 of file side_filter.hpp.

Constructor & Destructor Documentation

side_filter::~side_filter ( )

Definition at line 57 of file side_filter.cpp.

side_filter::side_filter ( const std::string side_string,
const filter_context fc,
bool  flat_tod = false 
)

Definition at line 67 of file side_filter.cpp.

Referenced by match(), and match_internal().

side_filter::side_filter ( const vconfig cfg,
const filter_context fc,
bool  flat_tod = false 
)

Definition at line 59 of file side_filter.cpp.

side_filter::side_filter ( const side_filter other)
private

Member Function Documentation

std::vector< int > side_filter::get_teams ( ) const
bool side_filter::match ( const team t) const
bool side_filter::match ( const int  side) const
bool side_filter::match_internal ( const team t) const
private
side_filter& side_filter::operator= ( const side_filter other)
private

Member Data Documentation

boost::scoped_ptr<side_filter> side_filter::allied_filter_
mutableprivate

Definition at line 66 of file side_filter.hpp.

Referenced by match_internal().

const vconfig side_filter::cfg_
private

Definition at line 58 of file side_filter.hpp.

Referenced by match(), and match_internal().

boost::scoped_ptr<side_filter> side_filter::enemy_filter_
mutableprivate

Definition at line 67 of file side_filter.hpp.

Referenced by match_internal().

const filter_context* side_filter::fc_
private

The filter context for this filter. It should be a pointer because otherwise the default ctor doesn't work.

Definition at line 63 of file side_filter.hpp.

Referenced by get_teams(), match(), and match_internal().

bool side_filter::flat_
private

Definition at line 60 of file side_filter.hpp.

Referenced by match(), and match_internal().

boost::scoped_ptr<side_filter> side_filter::has_ally_filter_
mutableprivate

Definition at line 68 of file side_filter.hpp.

Referenced by match_internal().

boost::scoped_ptr<side_filter> side_filter::has_enemy_filter_
mutableprivate

Definition at line 69 of file side_filter.hpp.

Referenced by match_internal().

std::string side_filter::side_string_
private

Definition at line 61 of file side_filter.hpp.

Referenced by match_internal().

boost::scoped_ptr<unit_filter> side_filter::ufilter_
mutableprivate

Definition at line 65 of file side_filter.hpp.

Referenced by match_internal().


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