The Battle for Wesnoth  1.15.2+dev
Public Member Functions | List of all members
gui2::iteration::policy::visit::visit_level< level > Class Template Reference

This policy tries to visit the current level. More...

#include <policy_visit.hpp>

Inheritance diagram for gui2::iteration::policy::visit::visit_level< level >:
Inheritance graph

Public Member Functions

walker_base::state_t next (walker_base &visitor)
 Acts like walker_base::next for the level where the policy is used. More...
 
bool at_end (const walker_base &visitor) const
 Acts like walker_base::at_end for the level where the policy is used. More...
 
gui2::widgetget (walker_base &visitor)
 Acts like walker_base::get for the level where the policy is used. More...
 

Detailed Description

template<walker_base::level level>
class gui2::iteration::policy::visit::visit_level< level >

This policy tries to visit the current level.

Template Parameters
levelThe level to visit.

Definition at line 70 of file policy_visit.hpp.

Member Function Documentation

◆ at_end()

template<walker_base::level level>
bool gui2::iteration::policy::visit::visit_level< level >::at_end ( const walker_base visitor) const
inline

Acts like walker_base::at_end for the level where the policy is used.

Definition at line 84 of file policy_visit.hpp.

References gui2::iteration::walker_base::at_end(), and game_config::images::level.

◆ get()

template<walker_base::level level>
gui2::widget* gui2::iteration::policy::visit::visit_level< level >::get ( walker_base visitor)
inline

Acts like walker_base::get for the level where the policy is used.

Definition at line 92 of file policy_visit.hpp.

References game_config::images::level.

◆ next()

template<walker_base::level level>
walker_base::state_t gui2::iteration::policy::visit::visit_level< level >::next ( walker_base visitor)
inline

Acts like walker_base::next for the level where the policy is used.

Definition at line 76 of file policy_visit.hpp.

References game_config::images::level, and gui2::iteration::walker_base::next().


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