|
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 (const DB_OBJ *aParent, uint32_t aHead, uint32_t aTail, const char *aDebugName) | |
| DB_REF_CHAIN (const DB_OBJ *aParent) | |
| 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) |
| virtual std::string | DebugString () const |
Public Attributes | |
| std::function< const DB_REF &(const DB_OBJ &)> | m_NextRefGetter |
| uint32_t | m_Head |
| uint32_t | m_Tail |
| std::vector< DB_OBJ * > | m_Chain |
| const DB_OBJ * | m_Parent |
| const char * | m_DebugName |
Chain of DB references that lead from the head to the tail.
Definition at line 90 of file allegro_db.h.
|
inline |
Definition at line 92 of file allegro_db.h.
References ALLEGRO::RESOLVABLE::m_DebugName, m_Head, m_Tail, and ALLEGRO::RESOLVABLE::RESOLVABLE().
Referenced by DB_REF_CHAIN().
|
inline |
Definition at line 100 of file allegro_db.h.
References DB_REF_CHAIN().
|
virtualinherited |
Definition at line 122 of file allegro_db.cpp.
References m_DebugName, and m_Parent.
Referenced by ALLEGRO::DB_REF_CHAIN::Resolve().
|
overridevirtual |
Implements ALLEGRO::RESOLVABLE.
Definition at line 176 of file allegro_db.cpp.
References ALLEGRO::RESOLVABLE::DebugString(), m_Chain, ALLEGRO::RESOLVABLE::m_DebugName, m_Head, m_NextRefGetter, m_Tail, ALLEGRO::DB_REF::m_TargetKey, ALLEGRO::DB_OBJ_RESOLVER::Resolve(), and THROW_IO_ERROR.
| void DB_REF_CHAIN::Visit | ( | std::function< void(const DB_OBJ &aObj)> | aVisitor | ) | const |
Visit all objects in the chain.
Definition at line 230 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 239 of file allegro_db.cpp.
References m_Chain.
| std::vector<DB_OBJ*> ALLEGRO::DB_REF_CHAIN::m_Chain |
Definition at line 120 of file allegro_db.h.
|
inherited |
Definition at line 61 of file allegro_db.h.
Referenced by ALLEGRO::DB_REF_CHAIN::DB_REF_CHAIN(), DebugString(), RESOLVABLE(), 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 116 of file allegro_db.h.
Referenced by DB_REF_CHAIN(), and Resolve().
Definition at line 113 of file allegro_db.h.
Referenced by Resolve().
|
inherited |
Definition at line 60 of file allegro_db.h.
Referenced by DebugString(), and RESOLVABLE().
| uint32_t ALLEGRO::DB_REF_CHAIN::m_Tail |
Definition at line 117 of file allegro_db.h.
Referenced by DB_REF_CHAIN(), and Resolve().