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

#include <std_optional_variants.h>

Inheritance diagram for STD_OPTIONAL_INT_VARIANT_DATA:

Public Member Functions

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

Static Public Member Functions

static wxVariantData * VariantDataFactory (const wxAny &aAny)
 

Protected Attributes

std::optional< int > m_value
 

Detailed Description

Definition at line 31 of file std_optional_variants.h.

Constructor & Destructor Documentation

◆ STD_OPTIONAL_INT_VARIANT_DATA() [1/2]

STD_OPTIONAL_INT_VARIANT_DATA::STD_OPTIONAL_INT_VARIANT_DATA ( )

Definition at line 23 of file std_optional_variants.cpp.

Referenced by VariantDataFactory().

◆ STD_OPTIONAL_INT_VARIANT_DATA() [2/2]

STD_OPTIONAL_INT_VARIANT_DATA::STD_OPTIONAL_INT_VARIANT_DATA ( std::optional< int >  aValue)

Definition at line 28 of file std_optional_variants.cpp.

Member Function Documentation

◆ Eq()

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

Definition at line 34 of file std_optional_variants.cpp.

References m_value.

◆ GetAsAny()

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

Definition at line 42 of file std_optional_variants.h.

References m_value.

◆ GetType()

wxString STD_OPTIONAL_INT_VARIANT_DATA::GetType ( ) const
inlineoverride

Definition at line 40 of file std_optional_variants.h.

◆ Value()

std::optional< int > STD_OPTIONAL_INT_VARIANT_DATA::Value ( ) const
inline

Definition at line 48 of file std_optional_variants.h.

References m_value.

Referenced by PGPROPERTY_DISTANCE::DistanceToString(), and PROPERTY_BASE::set().

◆ VariantDataFactory()

static wxAnyToSTD_OPTIONAL_INT_VARIANTRegistrationImpl s_wxAnyToSTD_OPTIONAL_INT_VARIANTRegistration & STD_OPTIONAL_INT_VARIANT_DATA::VariantDataFactory ( const wxAny &  aAny)
inlinestatic

Definition at line 53 of file std_optional_variants.h.

References STD_OPTIONAL_INT_VARIANT_DATA().

Member Data Documentation

◆ m_value

std::optional<int> STD_OPTIONAL_INT_VARIANT_DATA::m_value
protected

Definition at line 59 of file std_optional_variants.h.

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


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