The Battle for Wesnoth  1.19.7+dev
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
variable_info_implementation::get_variable_key_visitor< V > Class Template Reference

Adds a '. More...

#include <variable_info_private.hpp>

Inheritance diagram for variable_info_implementation::get_variable_key_visitor< V >:

Public Types

using param_t = typename get_variable_key_visitor::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

 get_variable_key_visitor (const std::string &key)
 
void from_named (param_t state) const
 
void from_start (param_t state) const
 
void from_indexed (param_t state) const
 

Private Member Functions

void do_from_config (maybe_const_t< config, V > &cfg, param_t state) const
 

Private Attributes

const std::string & key_
 

Detailed Description

template<typename V>
class variable_info_implementation::get_variable_key_visitor< V >

Adds a '.

<key>' to the current variable.

Definition at line 122 of file variable_info_private.hpp.

Member Typedef Documentation

◆ param_t

Definition at line 126 of file variable_info_private.hpp.

Constructor & Destructor Documentation

◆ get_variable_key_visitor()

template<typename V >
variable_info_implementation::get_variable_key_visitor< V >::get_variable_key_visitor ( const std::string &  key)
inline

Member Function Documentation

◆ do_from_config()

template<typename V >
void variable_info_implementation::get_variable_key_visitor< V >::do_from_config ( maybe_const_t< config, V > &  cfg,
param_t  state 
) const
inlineprivate

◆ from_indexed()

template<typename V >
void variable_info_implementation::get_variable_key_visitor< V >::from_indexed ( param_t  state) const
inline

◆ from_named()

template<typename V >
void variable_info_implementation::get_variable_key_visitor< V >::from_named ( param_t  state) const
inline

◆ from_start()

template<typename V >
void variable_info_implementation::get_variable_key_visitor< V >::from_start ( param_t  state) const
inline

Member Data Documentation

◆ key_

template<typename V >
const std::string& variable_info_implementation::get_variable_key_visitor< V >::key_
private

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