|
KiCad PCB EDA Suite
|
Interface for resolving EDA_ITEM instances by the KIID from an RC_ITEM. More...
#include <rc_item.h>
Public Member Functions | |
| virtual | ~RC_ITEM_RESOLVER ()=default |
| EDA_ITEM * | ResolveItemById (const KIID &aKiid) const |
| Resolve an item by its KIID. | |
Protected Member Functions | |
| virtual EDA_ITEM * | doResolveItemById (const KIID &aKiid) const =0 |
| The actual resolution logic for an item by its KIID, must be implemented against the actual item store of the inheriting class. | |
Private Attributes | |
| std::unordered_set< KIID > | m_resolutionMisses |
| Store of missed resolution attempts (KIIDs that could not be resolved). | |
Interface for resolving EDA_ITEM instances by the KIID from an RC_ITEM.
Implement this interface to provide a way to look up EDA_ITEM objects using their unique identifiers (KIID). For example, a PCB may defer to BOARD::ResolveItem().
These objects are expected to be short-lived and are not thread-safe for concurrent access.
|
virtualdefault |
|
protectedpure virtual |
The actual resolution logic for an item by its KIID, must be implemented against the actual item store of the inheriting class.
| aKiid | The KIID of the item to resolve. |
Implemented in BOARD_RC_ITEM_RESOLVER, and SCH_RC_ITEM_RESOLVER.
Referenced by ResolveItemById().
Resolve an item by its KIID.
| aKiid | The KIID of the item to resolve. |
Definition at line 98 of file rc_item.h.
References doResolveItemById(), m_resolutionMisses, and niluuid.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), RC_ITEM::GetJsonViolation(), and RC_ITEM::ShowReport().
|
mutableprivate |
Store of missed resolution attempts (KIIDs that could not be resolved).
Definition at line 128 of file rc_item.h.
Referenced by ResolveItemById().