KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ENUM_MAP< T > Class Template Reference

#include <property.h>

Public Member Functions

ENUM_MAPMap (T aValue, const wxString &aName)
 
ENUM_MAPUndefined (T aValue)
 
const wxString & ToString (T value) const
 
bool IsValueDefined (T value) const
 
T ToEnum (const wxString value)
 
wxPGChoices & Choices ()
 

Static Public Member Functions

static ENUM_MAP< T > & Instance ()
 

Private Member Functions

 ENUM_MAP ()
 

Private Attributes

wxPGChoices m_choices
 
std::unordered_map< wxString, Tm_reverseMap
 
T m_undefined
 

Detailed Description

template<typename T>
class ENUM_MAP< T >

Definition at line 696 of file property.h.

Constructor & Destructor Documentation

◆ ENUM_MAP()

template<typename T>
ENUM_MAP< T >::ENUM_MAP ( )
inlineprivate

Definition at line 758 of file property.h.

Referenced by Instance(), Map(), and Undefined().

Member Function Documentation

◆ Choices()

◆ Instance()

◆ IsValueDefined()

template<typename T>
bool ENUM_MAP< T >::IsValueDefined ( T value) const
inline

Definition at line 730 of file property.h.

References m_choices, and T.

◆ Map()

◆ ToEnum()

template<typename T>
T ENUM_MAP< T >::ToEnum ( const wxString value)
inline

Definition at line 740 of file property.h.

References m_reverseMap, m_undefined, and T.

◆ ToString()

template<typename T>
const wxString & ENUM_MAP< T >::ToString ( T value) const
inline

Definition at line 718 of file property.h.

References m_choices, and T.

◆ Undefined()

Member Data Documentation

◆ m_choices

template<typename T>
wxPGChoices ENUM_MAP< T >::m_choices
private

Definition at line 754 of file property.h.

Referenced by Choices(), IsValueDefined(), Map(), and ToString().

◆ m_reverseMap

template<typename T>
std::unordered_map<wxString, T> ENUM_MAP< T >::m_reverseMap
private

Definition at line 755 of file property.h.

Referenced by Map(), and ToEnum().

◆ m_undefined

template<typename T>
T ENUM_MAP< T >::m_undefined
private

Definition at line 756 of file property.h.

Referenced by ToEnum(), and Undefined().


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