The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Static Private Member Functions | List of all members
ai::lua_aspect_visitor Class Reference

#include <aspect.hpp>

Public Member Functions

std::string operator() (bool b) const
 
std::string operator() (int i) const
 
std::string operator() (unsigned long long i) const
 
std::string operator() (double i) const
 
std::string operator() (const std::string &s) const
 
std::string operator() (const t_string &s) const
 
std::string operator() (utils::monostate) const
 

Static Private Member Functions

static std::string quote_string (const std::string &s)
 

Detailed Description

Definition at line 383 of file aspect.hpp.

Member Function Documentation

◆ operator()() [1/7]

std::string ai::lua_aspect_visitor::operator() ( bool  b) const
inline

Definition at line 390 of file aspect.hpp.

References b, and utils::bool_string().

◆ operator()() [2/7]

std::string ai::lua_aspect_visitor::operator() ( const std::string &  s) const
inline

Definition at line 394 of file aspect.hpp.

References quote_string(), and s.

◆ operator()() [3/7]

std::string ai::lua_aspect_visitor::operator() ( const t_string s) const
inline

Definition at line 395 of file aspect.hpp.

References quote_string(), and s.

◆ operator()() [4/7]

std::string ai::lua_aspect_visitor::operator() ( double  i) const
inline

Definition at line 393 of file aspect.hpp.

References i.

◆ operator()() [5/7]

std::string ai::lua_aspect_visitor::operator() ( int  i) const
inline

Definition at line 391 of file aspect.hpp.

References i.

◆ operator()() [6/7]

std::string ai::lua_aspect_visitor::operator() ( unsigned long long  i) const
inline

Definition at line 392 of file aspect.hpp.

References i.

◆ operator()() [7/7]

std::string ai::lua_aspect_visitor::operator() ( utils::monostate  ) const
inline

Definition at line 396 of file aspect.hpp.

◆ quote_string()

std::string ai::lua_aspect_visitor::quote_string ( const std::string &  s)
staticprivate

Definition at line 148 of file aspect.cpp.

References s.

Referenced by operator()().


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