|
KiCad PCB EDA Suite
|
Chain of DB references that lead from the head to the tail. More...
#include <allegro_db.h>
Public Member Functions | |
| DB_REF_CHAIN (uint32_t aHead, uint32_t aTail) | |
| DB_REF_CHAIN () | |
| bool | Resolve (const DB_OBJ_RESOLVER &aResolver) override |
| void | Visit (std::function< void(const DB_OBJ &aObj)> aVisitor) const |
| Visit all objects in the chain. | |
| void | Visit (std::function< void(DB_OBJ &aObj)> aVisitor) |
Public Attributes | |
| std::function< uint32_t(const DB_OBJ &)> | m_NextKeyGetter |
| uint32_t | m_Head |
| uint32_t | m_Tail |
| std::vector< DB_OBJ * > | m_Chain |
| const char * | m_DebugName = nullptr |
Chain of DB references that lead from the head to the tail.
Definition at line 84 of file allegro_db.h.
|
inline |
Definition at line 86 of file allegro_db.h.
References m_Head, and m_Tail.
Referenced by DB_REF_CHAIN().
|
inline |
Definition at line 92 of file allegro_db.h.
References DB_REF_CHAIN().
|
overridevirtual |
Implements ALLEGRO::RESOLVABLE.
Definition at line 155 of file allegro_db.cpp.
References m_Chain, ALLEGRO::RESOLVABLE::m_DebugName, m_Head, m_NextKeyGetter, m_Tail, and ALLEGRO::DB_OBJ_RESOLVER::Resolve().
| void DB_REF_CHAIN::Visit | ( | std::function< void(const DB_OBJ &aObj)> | aVisitor | ) | const |
Visit all objects in the chain.
Definition at line 190 of file allegro_db.cpp.
References m_Chain.
Referenced by ALLEGRO::BRD_DB::VisitComponentPins(), ALLEGRO::BRD_DB::VisitComponents(), and ALLEGRO::BRD_DB::visitFootprintInstances().
| void DB_REF_CHAIN::Visit | ( | std::function< void(DB_OBJ &aObj)> | aVisitor | ) |
Definition at line 199 of file allegro_db.cpp.
References m_Chain.
| std::vector<DB_OBJ*> ALLEGRO::DB_REF_CHAIN::m_Chain |
Definition at line 110 of file allegro_db.h.
|
inherited |
Definition at line 50 of file allegro_db.h.
Referenced by ALLEGRO::DB_REF::Resolve(), ALLEGRO::DB_REF_CHAIN::Resolve(), and ALLEGRO::DB_STR_REF::Resolve().
| uint32_t ALLEGRO::DB_REF_CHAIN::m_Head |
Definition at line 106 of file allegro_db.h.
Referenced by DB_REF_CHAIN(), and Resolve().
| std::function<uint32_t( const DB_OBJ& )> ALLEGRO::DB_REF_CHAIN::m_NextKeyGetter |
Definition at line 105 of file allegro_db.h.
Referenced by Resolve().
| uint32_t ALLEGRO::DB_REF_CHAIN::m_Tail |
Definition at line 107 of file allegro_db.h.
Referenced by DB_REF_CHAIN(), and Resolve().