KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::COND_GE_LT< GEVersion, LTVersion, T > Struct Template Reference

This is a conditional field that only exists in versions of a file less than a certain version. More...

#include <allegro_pcb_structs.h>

Inheritance diagram for ALLEGRO::COND_GE_LT< GEVersion, LTVersion, T >:
ALLEGRO::COND_FIELD_BASE< T >

Public Types

using value_type = T
 

Public Member Functions

constexpr bool exists (FMT_VER ver) const
 Define this function in the derived class to determine if the field exists in the given version of the file.
 
Tvalue ()
 
const Tvalue () const
 
bool has_value () const
 
const Tvalue_or (const T &aDefault) const
 
Toperator* ()
 
const Toperator* () const
 
Toperator-> ()
 
const Toperator-> () const
 

Private Attributes

std::optional< Tm_Value
 

Detailed Description

template<FMT_VER GEVersion, FMT_VER LTVersion, typename T>
struct ALLEGRO::COND_GE_LT< GEVersion, LTVersion, T >

This is a conditional field that only exists in versions of a file less than a certain version.

Definition at line 199 of file allegro_pcb_structs.h.

Member Typedef Documentation

◆ value_type

template<typename T>
using ALLEGRO::COND_FIELD_BASE< T >::value_type = T
inherited

Definition at line 130 of file allegro_pcb_structs.h.

Member Function Documentation

◆ exists()

template<FMT_VER GEVersion, FMT_VER LTVersion, typename T>
bool ALLEGRO::COND_GE_LT< GEVersion, LTVersion, T >::exists ( FMT_VER ver) const
inlineconstexprvirtual

Define this function in the derived class to determine if the field exists in the given version of the file.

Implements ALLEGRO::COND_FIELD_BASE< T >.

Definition at line 201 of file allegro_pcb_structs.h.

◆ has_value()

◆ operator*() [1/2]

template<typename T>
T & ALLEGRO::COND_FIELD_BASE< T >::operator* ( )
inlineinherited

Definition at line 145 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ operator*() [2/2]

template<typename T>
const T & ALLEGRO::COND_FIELD_BASE< T >::operator* ( ) const
inlineinherited

Definition at line 146 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ operator->() [1/2]

template<typename T>
T * ALLEGRO::COND_FIELD_BASE< T >::operator-> ( )
inlineinherited

Definition at line 148 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ operator->() [2/2]

template<typename T>
const T * ALLEGRO::COND_FIELD_BASE< T >::operator-> ( ) const
inlineinherited

Definition at line 149 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ value() [1/2]

◆ value() [2/2]

template<typename T>
const T & ALLEGRO::COND_FIELD_BASE< T >::value ( ) const
inlineinherited

Definition at line 140 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ value_or()

template<typename T>
const T & ALLEGRO::COND_FIELD_BASE< T >::value_or ( const T & aDefault) const
inlineinherited

Member Data Documentation

◆ m_Value

template<typename T>
std::optional<T> ALLEGRO::COND_FIELD_BASE< T >::m_Value
privateinherited

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