KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::COND_GE< MinVersion, T > Struct Template Reference

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

#include <allegro_pcb_structs.h>

Inheritance diagram for ALLEGRO::COND_GE< MinVersion, T >:
ALLEGRO::COND_FIELD_BASE< T >

Public Types

using value_type = T
 

Public Member Functions

constexpr bool exists (FMT_VER ver) const override
 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 MinVersion, typename T>
struct ALLEGRO::COND_GE< MinVersion, T >

This is a conditional field that only exists in versions of a file of or above a certain version.

Definition at line 174 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 131 of file allegro_pcb_structs.h.

Member Function Documentation

◆ exists()

template<FMT_VER MinVersion, typename T>
bool ALLEGRO::COND_GE< MinVersion, T >::exists ( FMT_VER ver) const
inlineconstexproverridevirtual

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 176 of file allegro_pcb_structs.h.

◆ has_value()

template<typename T>
bool ALLEGRO::COND_FIELD_BASE< T >::has_value ( ) const
inlineinherited

◆ operator*() [1/2]

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

Definition at line 146 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 147 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 149 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 150 of file allegro_pcb_structs.h.

References m_Value, and T.

◆ value() [1/2]

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

◆ value() [2/2]

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

Definition at line 141 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

Definition at line 144 of file allegro_pcb_structs.h.

References has_value(), T, and value().

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: