The Battle for Wesnoth  1.19.5+dev
Public Types | Public Member Functions | Protected Attributes | List of all members
variable_info_implementation::as_range_visitor_base< V, THandler, T > Class Template Reference

#include <variable_info_private.hpp>

Inheritance diagram for variable_info_implementation::as_range_visitor_base< V, THandler, T >:

Public Types

using result_t = typename as_range_visitor_base::result_t
 
using param_t = typename as_range_visitor_base::param_t
 
- Public Types inherited from variable_info_implementation::info_visitor_base< R, P >
using result_t = R
 
using param_t = P &
 

Public Member Functions

 as_range_visitor_base (T &&... args)
 
result_t from_named (param_t state) const
 
result_t from_indexed (param_t state) const
 

Protected Attributes

THandler handler_
 

Detailed Description

template<typename V, typename THandler, typename... T>
class variable_info_implementation::as_range_visitor_base< V, THandler, T >

Template Parameters
THandlerHandler type. Should implement an operator() with the signature: '(config&, const std::string&, int, int) -> THandler::result_t'

That does the actual work on the range of children of cfg with name 'name'. Note this is currently only used by the insert/append/replace/merge operations, so V is always vi_policy_create.

Definition at line 299 of file variable_info_private.hpp.

Member Typedef Documentation

◆ param_t

template<typename V , typename THandler , typename... T>
using variable_info_implementation::as_range_visitor_base< V, THandler, T >::param_t = typename as_range_visitor_base::param_t

Definition at line 304 of file variable_info_private.hpp.

◆ result_t

template<typename V , typename THandler , typename... T>
using variable_info_implementation::as_range_visitor_base< V, THandler, T >::result_t = typename as_range_visitor_base::result_t

Definition at line 303 of file variable_info_private.hpp.

Constructor & Destructor Documentation

◆ as_range_visitor_base()

template<typename V , typename THandler , typename... T>
variable_info_implementation::as_range_visitor_base< V, THandler, T >::as_range_visitor_base ( T &&...  args)
inline

Definition at line 306 of file variable_info_private.hpp.

Member Function Documentation

◆ from_indexed()

template<typename V , typename THandler , typename... T>
result_t variable_info_implementation::as_range_visitor_base< V, THandler, T >::from_indexed ( param_t  state) const
inline

◆ from_named()

template<typename V , typename THandler , typename... T>
result_t variable_info_implementation::as_range_visitor_base< V, THandler, T >::from_named ( param_t  state) const
inline

Member Data Documentation

◆ handler_

template<typename V , typename THandler , typename... T>
THandler variable_info_implementation::as_range_visitor_base< V, THandler, T >::handler_
protected

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