|
KiCad PCB EDA Suite
|
Version-conditional field. More...
#include <allegro_pcb_structs.h>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| T & | value () |
| const T & | value () const |
| bool | has_value () const |
| const T & | value_or (const T &aDefault) const |
| T & | operator* () |
| const T & | operator* () const |
| T * | operator-> () |
| const T * | operator-> () const |
| COND_FIELD & | operator= (const T &aValue) |
| COND_FIELD & | operator= (T &&aValue) |
Static Public Member Functions | |
| static constexpr bool | exists (FMT_VER aVer) |
Private Attributes | |
| std::optional< T > | m_Value |
Version-conditional field.
Wraps std::optional<T> with a compile-time predicate that determines whether the field exists for a given FMT_VER.
Definition at line 171 of file allegro_pcb_structs.h.
| using ALLEGRO::COND_FIELD< Pred, T >::value_type = T |
Definition at line 173 of file allegro_pcb_structs.h.
|
inlinestaticconstexpr |
Definition at line 175 of file allegro_pcb_structs.h.
|
inline |
Definition at line 180 of file allegro_pcb_structs.h.
Referenced by ALLEGRO::COND_FIELD< VER_GE< Min >{}, T >::value_or().
|
inline |
Definition at line 184 of file allegro_pcb_structs.h.
|
inline |
Definition at line 185 of file allegro_pcb_structs.h.
|
inline |
Definition at line 187 of file allegro_pcb_structs.h.
|
inline |
Definition at line 188 of file allegro_pcb_structs.h.
|
inline |
Definition at line 191 of file allegro_pcb_structs.h.
|
inline |
Definition at line 197 of file allegro_pcb_structs.h.
|
inline |
Definition at line 178 of file allegro_pcb_structs.h.
Referenced by ALLEGRO::COND_FIELD< VER_GE< Min >{}, T >::value_or().
|
inline |
Definition at line 179 of file allegro_pcb_structs.h.
|
inline |
Definition at line 182 of file allegro_pcb_structs.h.
|
private |
Definition at line 204 of file allegro_pcb_structs.h.