|
KiCad PCB EDA Suite
|
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>
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. | |
| 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 |
Private Attributes | |
| std::optional< T > | m_Value |
This is a conditional field that only exists in versions of a file of or above a certain version.
Definition at line 173 of file allegro_pcb_structs.h.
|
inherited |
Definition at line 130 of file allegro_pcb_structs.h.
|
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 175 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 141 of file allegro_pcb_structs.h.
References m_Value.
Referenced by ALLEGRO::BOARD_BUILDER::buildPadItems(), ALLEGRO::BOARD_BUILDER::getFpInstRef(), ALLEGRO::PIN_NUMBER::PIN_NUMBER(), ALLEGRO::BOARD_BUILDER::resolveShapeNet(), and value_or().
|
inlineinherited |
Definition at line 145 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 146 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 148 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 149 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 139 of file allegro_pcb_structs.h.
Referenced by ALLEGRO::BOARD_BUILDER::buildPadItems(), ALLEGRO::BOARD_BUILDER::getFpInstRef(), operator=(), operator=(), ALLEGRO::PIN_NUMBER::PIN_NUMBER(), ALLEGRO::BOARD_BUILDER::resolveShapeNet(), and value_or().
|
inlineinherited |
Definition at line 140 of file allegro_pcb_structs.h.
|
inlineinherited |
Definition at line 143 of file allegro_pcb_structs.h.
References has_value(), T, and value().
Referenced by ALLEGRO::BOARD_BUILDER::applyZoneFills(), and ALLEGRO::FOOTPRINT_INSTANCE::FOOTPRINT_INSTANCE().
|
privateinherited |
Definition at line 164 of file allegro_pcb_structs.h.
Referenced by has_value(), operator*(), operator*(), operator->(), operator->(), operator=(), operator=(), value(), and value().