The Battle for Wesnoth  1.15.2+dev
Public Types | List of all members
variable_info_implementation::info_visitor_base< R, P > Class Template Reference

Visitor base class. More...

#include <variable_info_private.hpp>

Inheritance diagram for variable_info_implementation::info_visitor_base< R, P >:
Inheritance graph

Public Types

using result_t = R
 
using param_t = P &
 

Detailed Description

template<typename R, typename P>
class variable_info_implementation::info_visitor_base< R, P >

Visitor base class.

This provides the interface for the main functions each visitor can implement. The default implementation of each function simply throws invalid_variablename_exception.

This class also provides two type aliases corresponding to the function return value and argument types. Note that visitors shouldn't inherit from this directly and instead use the info_visitor and info_visitor_const wrappers, since both fully specify the parameter type.

Template Parameters
RReturn value type.
PArgument type.

Definition at line 87 of file variable_info_private.hpp.

Member Typedef Documentation

◆ param_t

template<typename R , typename P >
using variable_info_implementation::info_visitor_base< R, P >::param_t = P&

Definition at line 91 of file variable_info_private.hpp.

◆ result_t

template<typename R , typename P >
using variable_info_implementation::info_visitor_base< R, P >::result_t = R

Definition at line 90 of file variable_info_private.hpp.


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