The Battle for Wesnoth  1.15.13+dev
Static Public Member Functions | List of all members
ai::variant_value_translator< bool > Class Template 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

class ai::variant_value_translator< bool >

Definition at line 339 of file value_translator.hpp.

Member Function Documentation

◆ value_to_variant() [1/2]

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

Definition at line 347 of file value_translator.hpp.

◆ value_to_variant() [2/2]

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

Definition at line 352 of file value_translator.hpp.

◆ variant_to_value() [1/2]

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

Definition at line 342 of file value_translator.hpp.

References wfl::variant::as_bool().

◆ variant_to_value() [2/2]

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

Definition at line 359 of file value_translator.hpp.

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