The Battle for Wesnoth  1.19.5+dev
Classes | Typedefs
variable_info.hpp File Reference
#include "config.hpp"
#include <string>
#include <type_traits>
#include "variable_info_detail.hpp"
Include dependency graph for variable_info.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  invalid_variablename_exception
 
class  variable_info< V >
 Information on a WML variable. More...
 
class  variable_info_mutable< V >
 Additional functionality for a non-const variable_info. More...
 
class  variable_set
 

Typedefs

using variable_access_create = variable_info_mutable< variable_info_implementation::vi_policy_create >
 'Create if nonexistent' access. More...
 
using variable_access_throw = variable_info_mutable< variable_info_implementation::vi_policy_throw >
 'Throw if nonexistent' access. More...
 
using variable_access_const = variable_info< const variable_info_implementation::vi_policy_const >
 Read-only access. More...
 

Typedef Documentation

◆ variable_access_const

Read-only access.

NOTE: in order to easily mark certain types in this specialization as const we specify the policy as const here. This allows the use of const_clone.

Definition at line 151 of file variable_info.hpp.

◆ variable_access_create

'Create if nonexistent' access.

Definition at line 140 of file variable_info.hpp.

◆ variable_access_throw

'Throw if nonexistent' access.

Definition at line 143 of file variable_info.hpp.