The Battle for Wesnoth  1.19.7+dev
Static Public Member Functions | List of all members
ai::variant_value_translator< bool > Class Reference

#include <value_translator.hpp>

Static Public Member Functions

static void variant_to_value (const wfl::variant &var, bool &value)
 
static void value_to_variant (const bool &value, wfl::variant &var)
 
static wfl::variant value_to_variant (const bool &value)
 
static bool variant_to_value (const wfl::variant &var)
 

Detailed Description

Definition at line 340 of file value_translator.hpp.

Member Function Documentation

◆ value_to_variant() [1/2]

static wfl::variant ai::variant_value_translator< bool >::value_to_variant ( const bool &  value)
inlinestatic

◆ value_to_variant() [2/2]

static void ai::variant_value_translator< bool >::value_to_variant ( const bool &  value,
wfl::variant var 
)
inlinestatic

Definition at line 348 of file value_translator.hpp.

◆ variant_to_value() [1/2]

static bool ai::variant_value_translator< bool >::variant_to_value ( const wfl::variant var)
inlinestatic

◆ variant_to_value() [2/2]

static void ai::variant_value_translator< bool >::variant_to_value ( const wfl::variant var,
bool &  value 
)
inlinestatic

Definition at line 343 of file value_translator.hpp.

References wfl::variant::as_bool().


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