KiCad PCB EDA Suite
Loading...
Searching...
No Matches
map_helpers.h File Reference
#include <optional>
#include <map>
#include <wx/string.h>

Go to the source code of this file.

Functions

template<typename V >
std::optional< V > get_opt (const std::map< wxString, V > &aMap, const wxString &aKey)
 
template<typename V >
std::optional< V > get_opt (const std::map< wxString, V > &aMap, const char *aKey)
 
template<typename K , typename V >
std::optional< V > get_opt (const std::map< K, V > &aMap, const K &aKey)
 
wxString get_def (const std::map< wxString, wxString > &aMap, const char *aKey, const char *aDefval="")
 
wxString get_def (const std::map< wxString, wxString > &aMap, const char *aKey, const wxString &aDefval=wxString())
 
wxString get_def (const std::map< wxString, wxString > &aMap, const wxString &aKey, const wxString &aDefval=wxString())
 
template<typename K , typename V >
get_def (const std::map< K, V > &aMap, const K &aKey, const V &aDefval=V())
 

Function Documentation

◆ get_def() [1/4]

template<typename K , typename V >
V get_def ( const std::map< K, V > &  aMap,
const K &  aKey,
const V &  aDefval = V() 
)
inline

Definition at line 112 of file map_helpers.h.

◆ get_def() [2/4]

◆ get_def() [3/4]

wxString get_def ( const std::map< wxString, wxString > &  aMap,
const char *  aKey,
const wxString &  aDefval = wxString() 
)
inline

Definition at line 80 of file map_helpers.h.

◆ get_def() [4/4]

wxString get_def ( const std::map< wxString, wxString > &  aMap,
const wxString &  aKey,
const wxString &  aDefval = wxString() 
)
inline

Definition at line 96 of file map_helpers.h.

◆ get_opt() [1/3]

template<typename K , typename V >
std::optional< V > get_opt ( const std::map< K, V > &  aMap,
const K &  aKey 
)
inline

Definition at line 53 of file map_helpers.h.

◆ get_opt() [2/3]

template<typename V >
std::optional< V > get_opt ( const std::map< wxString, V > &  aMap,
const char *  aKey 
)
inline

Definition at line 46 of file map_helpers.h.

References get_opt().

◆ get_opt() [3/3]