The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Types | Private Member Functions | Static Private Attributes | List of all members
wesnothd::banned_compare_subnet Struct Reference

#include <ban.hpp>

Public Member Functions

bool operator() (const banned_ptr &a, const banned_ptr &b) const
 

Private Types

typedef bool(banned_compare_subnet::* compare_fn) (const banned_ptr &a, const banned_ptr &b) const
 

Private Member Functions

bool less (const banned_ptr &a, const banned_ptr &b) const
 

Static Private Attributes

static compare_fn active_ = &banned_compare_subnet::less
 

Detailed Description

Definition at line 42 of file ban.hpp.

Member Typedef Documentation

◆ compare_fn

typedef bool(banned_compare_subnet::* wesnothd::banned_compare_subnet::compare_fn) (const banned_ptr &a, const banned_ptr &b) const
private

Definition at line 48 of file ban.hpp.

Member Function Documentation

◆ less()

bool wesnothd::banned_compare_subnet::less ( const banned_ptr a,
const banned_ptr b 
) const
private

Definition at line 59 of file ban.cpp.

References a, and b.

◆ operator()()

bool wesnothd::banned_compare_subnet::operator() ( const banned_ptr a,
const banned_ptr b 
) const

Definition at line 54 of file ban.cpp.

References a, active_, and b.

Member Data Documentation

◆ active_

banned_compare_subnet::compare_fn wesnothd::banned_compare_subnet::active_ = &banned_compare_subnet::less
staticprivate

Definition at line 49 of file ban.hpp.

Referenced by operator()().


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