|
KiCad PCB EDA Suite
|
Cache current component evaluations by exact node/version identity, within one stratum and key session. More...
#include <conn_component_cache.h>
Classes | |
| struct | ENTRY |
Public Member Functions | |
| COMPONENT_CACHE (CACHE_VERSIONS &aVersions) | |
| COMPONENT_CACHE (const COMPONENT_CACHE &)=delete | |
| COMPONENT_CACHE & | operator= (const COMPONENT_CACHE &)=delete |
| template<typename EVALUATE> | |
| void | UpdateBatch (std::span< const PARTITION > aPartitions, EVALUATE &&aEvaluate) |
| Main-thread update that evaluates only cache misses, returning values in the supplied partition order. | |
| const auto & | Entries () const |
| void | Clear () |
Private Attributes | |
| CACHE_VERSIONS & | m_versions |
| std::vector< std::unique_ptr< const ENTRY > > | m_entries |
Cache current component evaluations by exact node/version identity, within one stratum and key session.
Definition at line 39 of file conn_component_cache.h.
|
inlineexplicit |
Definition at line 49 of file conn_component_cache.h.
References m_versions.
Referenced by COMPONENT_CACHE(), and operator=().
|
delete |
References COMPONENT_CACHE().
|
inline |
Definition at line 113 of file conn_component_cache.h.
References m_entries.
|
inline |
Definition at line 112 of file conn_component_cache.h.
References m_entries.
Referenced by SCH_CONNECTIVITY::PUBLICATION::Update(), and SCH_CONNECTIVITY::SLOT_STORE::Update().
|
delete |
References COMPONENT_CACHE().
|
inline |
Main-thread update that evaluates only cache misses, returning values in the supplied partition order.
The evaluator must not mutate this cache or its input tables. Versions must cover every input read by the evaluator. Entries follow distinct input partitions. Reacquire references after UpdateBatch/Clear; use versions rather than addresses for change detection.
Definition at line 63 of file conn_component_cache.h.
References end, SCH_CONNECTIVITY::PARTITION::hash, m_entries, and m_versions.
|
private |
Definition at line 117 of file conn_component_cache.h.
Referenced by Clear(), Entries(), and UpdateBatch().
|
private |
Definition at line 116 of file conn_component_cache.h.
Referenced by COMPONENT_CACHE(), and UpdateBatch().