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

#include <value_translator.hpp>

Static Public Member Functions

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

Detailed Description

template<>
class ai::variant_value_translator< int >

Definition at line 240 of file value_translator.hpp.

Member Function Documentation

◆ value_to_variant() [1/2]

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

Definition at line 248 of file value_translator.hpp.

◆ value_to_variant() [2/2]

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

Definition at line 253 of file value_translator.hpp.

◆ variant_to_value() [1/2]

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

Definition at line 243 of file value_translator.hpp.

References wfl::variant::as_int().

◆ variant_to_value() [2/2]

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

Definition at line 260 of file value_translator.hpp.


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