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

#include <data.hpp>

Inheritance diagram for game_filter_stack:
Inheritance graph

Public Member Functions

 game_filter_stack ()
 
virtual ~game_filter_stack ()
 
void append (game_filter_base *f)
 Takes ownership. More...
 
void clear ()
 
bool empty () const
 
- Public Member Functions inherited from game_filter_base
virtual ~game_filter_base ()
 
virtual bool match (const game_info &game) const =0
 
bool operator() (const game_info &game) const
 

Protected Attributes

std::vector< game_filter_base * > filters_
 

Detailed Description

Definition at line 216 of file data.hpp.

Constructor & Destructor Documentation

game_filter_stack::game_filter_stack ( )

Definition at line 387 of file data.cpp.

game_filter_stack::~game_filter_stack ( )
virtual

Definition at line 391 of file data.cpp.

References filters_.

Member Function Documentation

void game_filter_stack::append ( game_filter_base f)

Takes ownership.

Definition at line 399 of file data.cpp.

References filters_.

Referenced by lobby_info::add_game_filter().

void game_filter_stack::clear ( )

Definition at line 404 of file data.cpp.

References filters_.

Referenced by lobby_info::clear_game_filter().

bool game_filter_stack::empty ( ) const
inline

Definition at line 229 of file data.hpp.

References filters_.

Member Data Documentation

std::vector<game_filter_base*> game_filter_stack::filters_
protected

Definition at line 235 of file data.hpp.

Referenced by append(), clear(), empty(), game_filter_and_stack::match(), and ~game_filter_stack().


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