The Battle for Wesnoth  1.19.7+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 43 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)
inline

Definition at line 46 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
inlinevirtual

◆ get_variable_const()

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

Implements variable_set.

Definition at line 48 of file string_utils.cpp.

References utils::string_map_variable_set< T >::map_.

Member Data Documentation

◆ map_

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

◆ temp_

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

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