The Battle for Wesnoth  1.17.0-dev
Public Member Functions | Private Attributes | List of all members
utils::string_map_variable_set< T > Class Template Reference
Inheritance diagram for utils::string_map_variable_set< T >:

Public Member Functions

 string_map_variable_set (const std::map< std::string, T > &map)
virtual config::attribute_value get_variable_const (const std::string &key) const
virtual variable_access_const get_variable_access_read (const std::string &varname) const
- Public Member Functions inherited from variable_set
virtual ~variable_set ()

Private Attributes

const std::map< std::string, T > & map_
std::shared_ptr< configtemp_

Detailed Description

template<typename T>
class utils::string_map_variable_set< T >

Definition at line 38 of file string_utils.cpp.

Constructor & Destructor Documentation

◆ string_map_variable_set()

template<typename T>
utils::string_map_variable_set< T >::string_map_variable_set ( const std::map< std::string, T > &  map)

Definition at line 41 of file string_utils.cpp.

Member Function Documentation

◆ get_variable_access_read()

template<typename T>
virtual variable_access_const utils::string_map_variable_set< T >::get_variable_access_read ( const std::string &  varname) const

Implements variable_set.

Definition at line 51 of file string_utils.cpp.

References p.

◆ get_variable_const()

template<typename T>
virtual config::attribute_value utils::string_map_variable_set< T >::get_variable_const ( const std::string &  key) const

Implements variable_set.

Definition at line 43 of file string_utils.cpp.

Member Data Documentation

◆ map_

template<typename T>
const std::map<std::string,T>& utils::string_map_variable_set< T >::map_

Definition at line 60 of file string_utils.cpp.

◆ temp_

template<typename T>
std::shared_ptr<config> utils::string_map_variable_set< T >::temp_

Definition at line 61 of file string_utils.cpp.

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