|
KiCad PCB EDA Suite
|
Non-owning, typed reference to a BLOCK in the database. More...
#include <allegro_db_utils.h>
Public Member Functions | |
| BLOCK_REF () | |
| BLOCK_REF (const BLOCK_BASE *aBlock) | |
| operator bool () const | |
| True when this BLOCK_REF contains a non-null block pointer (i.e. | |
| const BLK_T & | operator* () const |
| const BLK_T * | operator-> () const |
| const BLOCK_BASE * | Block () const |
Private Attributes | |
| const BLOCK_BASE * | m_block |
Non-owning, typed reference to a BLOCK in the database.
Wraps a raw BLOCK_BASE pointer and provides typed access to the block's data using std::optional-like operator-> and operator*.
Definition at line 88 of file allegro_db_utils.h.
|
inline |
Definition at line 91 of file allegro_db_utils.h.
References m_block.
|
inlineexplicit |
Definition at line 96 of file allegro_db_utils.h.
References m_block.
|
inline |
Definition at line 119 of file allegro_db_utils.h.
References m_block.
|
inlineexplicit |
True when this BLOCK_REF contains a non-null block pointer (i.e.
the block resolved by its key).
Definition at line 105 of file allegro_db_utils.h.
References m_block.
|
inline |
Definition at line 107 of file allegro_db_utils.h.
References ALLEGRO::BlockDataAs(), and m_block.
|
inline |
Definition at line 113 of file allegro_db_utils.h.
References ALLEGRO::BlockDataAs(), and m_block.
|
private |
Definition at line 122 of file allegro_db_utils.h.
Referenced by Block(), BLOCK_REF(), BLOCK_REF(), operator bool(), operator*(), and operator->().