KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::DB_REF_CHAIN Struct Reference

Chain of DB references that lead from the head to the tail. More...

#include <allegro_db.h>

Inheritance diagram for ALLEGRO::DB_REF_CHAIN:
ALLEGRO::RESOLVABLE

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
 

Detailed Description

Chain of DB references that lead from the head to the tail.

Definition at line 84 of file allegro_db.h.

Constructor & Destructor Documentation

◆ DB_REF_CHAIN() [1/2]

ALLEGRO::DB_REF_CHAIN::DB_REF_CHAIN ( uint32_t aHead,
uint32_t aTail )
inline

Definition at line 86 of file allegro_db.h.

References m_Head, and m_Tail.

Referenced by DB_REF_CHAIN().

◆ DB_REF_CHAIN() [2/2]

ALLEGRO::DB_REF_CHAIN::DB_REF_CHAIN ( )
inline

Definition at line 92 of file allegro_db.h.

References DB_REF_CHAIN().

Member Function Documentation

◆ Resolve()

bool DB_REF_CHAIN::Resolve ( const DB_OBJ_RESOLVER & aResolver)
overridevirtual

◆ Visit() [1/2]

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().

◆ Visit() [2/2]

void DB_REF_CHAIN::Visit ( std::function< void(DB_OBJ &aObj)> aVisitor)

Definition at line 199 of file allegro_db.cpp.

References m_Chain.

Member Data Documentation

◆ m_Chain

std::vector<DB_OBJ*> ALLEGRO::DB_REF_CHAIN::m_Chain

Definition at line 110 of file allegro_db.h.

Referenced by Resolve(), Visit(), and Visit().

◆ m_DebugName

const char* ALLEGRO::RESOLVABLE::m_DebugName = nullptr
inherited

◆ m_Head

uint32_t ALLEGRO::DB_REF_CHAIN::m_Head

Definition at line 106 of file allegro_db.h.

Referenced by DB_REF_CHAIN(), and Resolve().

◆ m_NextKeyGetter

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().

◆ m_Tail

uint32_t ALLEGRO::DB_REF_CHAIN::m_Tail

Definition at line 107 of file allegro_db.h.

Referenced by DB_REF_CHAIN(), and Resolve().


The documentation for this struct was generated from the following files: