KiCad PCB EDA Suite
Loading...
Searching...
No Matches
STD_OPTIONAL_DOUBLE_VARIANT_DATA Class Reference

#include <std_optional_variants.h>

Inheritance diagram for STD_OPTIONAL_DOUBLE_VARIANT_DATA:

Public Member Functions

 STD_OPTIONAL_DOUBLE_VARIANT_DATA ()
 
 STD_OPTIONAL_DOUBLE_VARIANT_DATA (std::optional< double > aValue)
 
bool Eq (wxVariantData &aOther) const override
 
wxString GetType () const override
 
bool GetAsAny (wxAny *aAny) const override
 
std::optional< double > Value () const
 

Static Public Member Functions

static wxVariantData * VariantDataFactory (const wxAny &aAny)
 

Protected Attributes

std::optional< double > m_value
 

Detailed Description

Definition at line 63 of file std_optional_variants.h.

Constructor & Destructor Documentation

◆ STD_OPTIONAL_DOUBLE_VARIANT_DATA() [1/2]

STD_OPTIONAL_DOUBLE_VARIANT_DATA::STD_OPTIONAL_DOUBLE_VARIANT_DATA ( )

Definition at line 47 of file std_optional_variants.cpp.

Referenced by VariantDataFactory().

◆ STD_OPTIONAL_DOUBLE_VARIANT_DATA() [2/2]

STD_OPTIONAL_DOUBLE_VARIANT_DATA::STD_OPTIONAL_DOUBLE_VARIANT_DATA ( std::optional< double >  aValue)

Definition at line 52 of file std_optional_variants.cpp.

Member Function Documentation

◆ Eq()

bool STD_OPTIONAL_DOUBLE_VARIANT_DATA::Eq ( wxVariantData &  aOther) const
override

Definition at line 58 of file std_optional_variants.cpp.

References m_value.

◆ GetAsAny()

bool STD_OPTIONAL_DOUBLE_VARIANT_DATA::GetAsAny ( wxAny *  aAny) const
inlineoverride

Definition at line 74 of file std_optional_variants.h.

References m_value.

◆ GetType()

wxString STD_OPTIONAL_DOUBLE_VARIANT_DATA::GetType ( ) const
inlineoverride

Definition at line 72 of file std_optional_variants.h.

◆ Value()

std::optional< double > STD_OPTIONAL_DOUBLE_VARIANT_DATA::Value ( ) const
inline

Definition at line 80 of file std_optional_variants.h.

References m_value.

Referenced by PROPERTY_BASE::set(), and PGPROPERTY_RATIO::ValueToString().

◆ VariantDataFactory()

static wxAnyToSTD_OPTIONAL_DOUBLE_VARIANTRegistrationImpl s_wxAnyToSTD_OPTIONAL_DOUBLE_VARIANTRegistration & STD_OPTIONAL_DOUBLE_VARIANT_DATA::VariantDataFactory ( const wxAny &  aAny)
inlinestatic

Definition at line 85 of file std_optional_variants.h.

References STD_OPTIONAL_DOUBLE_VARIANT_DATA().

Member Data Documentation

◆ m_value

std::optional<double> STD_OPTIONAL_DOUBLE_VARIANT_DATA::m_value
protected

Definition at line 91 of file std_optional_variants.h.

Referenced by Eq(), GetAsAny(), and Value().


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