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

Tries to convert to a [const] config&. More...

#include <variable_info_private.hpp>

Inheritance diagram for variable_info_implementation::as_container_visitor< V >:

Public Types

using result_t = typename as_container_visitor::result_t
 
using param_t = typename as_container_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

result_t from_named (param_t state) const
 
result_t from_start (param_t state) const
 
result_t from_indexed (param_t state) const
 

Detailed Description

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

Tries to convert to a [const] config&.

Unlike range based operation this also supports 'from_start'. NOTE: Currently getting the 'from_start' case here is impossible, because we always apply at least one string key.

Definition at line 232 of file variable_info_private.hpp.

Member Typedef Documentation

◆ param_t

Definition at line 237 of file variable_info_private.hpp.

◆ result_t

Definition at line 236 of file variable_info_private.hpp.

Member Function Documentation

◆ from_indexed()

template<typename V >
result_t variable_info_implementation::as_container_visitor< V >::from_indexed ( param_t  state) const
inline

Definition at line 249 of file variable_info_private.hpp.

◆ from_named()

template<typename V >
result_t variable_info_implementation::as_container_visitor< V >::from_named ( param_t  state) const
inline

Definition at line 239 of file variable_info_private.hpp.

◆ from_start()

template<typename V >
result_t variable_info_implementation::as_container_visitor< V >::from_start ( param_t  state) const
inline

Definition at line 244 of file variable_info_private.hpp.


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