The Battle for Wesnoth  1.15.2+dev
Public Member Functions | List of all members
unit::upkeep_parser_visitor Class Reference

Visitor helper class to parse the upkeep value from a config. More...

#include <unit.hpp>

Inheritance diagram for unit::upkeep_parser_visitor:
Inheritance graph

Public Member Functions

template<typename N >
std::enable_if_t< std::is_arithmetic< N >::value, upkeep_toperator() (N n) const
 
template<typename B >
std::enable_if_t< std::is_convertible< B, bool >::value &&!std::is_arithmetic< B >::value, upkeep_toperator() (B b) const
 
upkeep_t operator() (boost::blank) const
 
upkeep_t operator() (const std::string &s) const
 

Detailed Description

Visitor helper class to parse the upkeep value from a config.

Definition at line 1149 of file unit.hpp.

Member Function Documentation

◆ operator()() [1/4]

template<typename N >
std::enable_if_t<std::is_arithmetic<N>::value, upkeep_t> unit::upkeep_parser_visitor::operator() ( n) const
inline

Definition at line 1154 of file unit.hpp.

References n.

◆ operator()() [2/4]

template<typename B >
std::enable_if_t<std::is_convertible<B, bool>::value && !std::is_arithmetic<B>::value, upkeep_t> unit::upkeep_parser_visitor::operator() ( b) const
inline

Definition at line 1163 of file unit.hpp.

◆ operator()() [3/4]

upkeep_t unit::upkeep_parser_visitor::operator() ( boost::blank  ) const
inline

Definition at line 1168 of file unit.hpp.

◆ operator()() [4/4]

upkeep_t unit::upkeep_parser_visitor::operator() ( const std::string &  s) const
inline

Definition at line 1173 of file unit.hpp.


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