The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Attributes | List of all members
help::has_id Class Reference

To be used as a function object to locate sections and topics with a specified ID. More...

#include <help_impl.hpp>

Public Member Functions

 has_id (const std::string &id)
 
bool operator() (const topic &t)
 
bool operator() (const section &s)
 
bool operator() (const section *s)
 

Private Attributes

const std::string id_
 

Detailed Description

To be used as a function object to locate sections and topics with a specified ID.

Definition at line 169 of file help_impl.hpp.

Constructor & Destructor Documentation

◆ has_id()

help::has_id::has_id ( const std::string &  id)
inline

Definition at line 172 of file help_impl.hpp.

Member Function Documentation

◆ operator()() [1/3]

bool help::has_id::operator() ( const topic t)
inline

Definition at line 173 of file help_impl.hpp.

References help::topic::id.

◆ operator()() [2/3]

bool help::has_id::operator() ( const section s)
inline

Definition at line 174 of file help_impl.hpp.

References help::section::id.

◆ operator()() [3/3]

bool help::has_id::operator() ( const section s)
inline

Definition at line 175 of file help_impl.hpp.

References help::section::id.

Member Data Documentation

◆ id_

const std::string help::has_id::id_
private

Definition at line 177 of file help_impl.hpp.


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