The Battle for Wesnoth  1.19.5+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 175 of file help_impl.hpp.

Constructor & Destructor Documentation

◆ has_id()

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

Definition at line 178 of file help_impl.hpp.

Member Function Documentation

◆ operator()() [1/3]

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

Definition at line 180 of file help_impl.hpp.

References id_, and s.

◆ operator()() [2/3]

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

Definition at line 181 of file help_impl.hpp.

References id_, and s.

◆ operator()() [3/3]

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

Definition at line 179 of file help_impl.hpp.

References id_, and t.

Member Data Documentation

◆ id_

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

Definition at line 183 of file help_impl.hpp.

Referenced by operator()().


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