SuperTuxKart
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MapUserConfigParam< T, U > Class Template Reference

ATM only map with 1 key and 1 value is supported. More...

#include <user_config.hpp>

Inheritance diagram for MapUserConfigParam< T, U >:
Inheritance graph
[legend]

Public Member Functions

 MapUserConfigParam (const char *param_name, const char *comment, std::array< std::string, 3 > key_names, std::map< T, U > default_value)
 
 MapUserConfigParam (const char *param_name, GroupUserConfigParam *group, const char *comment=NULL)
 
 MapUserConfigParam (const char *param_name, GroupUserConfigParam *group, const char *comment, std::array< std::string, 3 > key_names, std::map< T, U > default_value)
 
void write (std::stringstream &stream) const
 
void findYourDataInAChildOf (const XMLNode *node)
 
void findYourDataInAnAttributeOf (const XMLNode *node)
 
void addElement (T element, U value)
 
irr::core::stringc toString () const
 
 operator std::map< T, U > () const
 
std::map< T, U >::iterator begin ()
 
std::map< T, U >::iterator end ()
 
std::map< T, U > & operator= (const std::map< T, U > &v)
 
std::map< T, U > & operator= (const MapUserConfigParam &v)
 
U & operator[] (const T key)
 
U & at (const T key)
 
- Public Member Functions inherited from UserConfigParam
virtual void writeInner (std::stringstream &stream, int level=0) const
 Writes an inner node. More...
 

Protected Member Functions

 MapUserConfigParam (const char *param_name, const char *comment)
 

Protected Attributes

std::array< std::string, 3 > m_key_names
 
std::map< T, U > m_elements
 
- Protected Attributes inherited from UserConfigParam
bool m_can_be_deleted = true
 
std::string m_param_name
 
std::string m_comment
 

Detailed Description

template<typename T, typename U>
class MapUserConfigParam< T, U >

ATM only map with 1 key and 1 value is supported.


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