|
KiCad PCB EDA Suite
|
Versioned value table. More...
#include <conn_cache.h>
Classes | |
| struct | ENTRY |
Public Member Functions | |
| CACHE_TABLE (CACHE_VERSIONS &aVersions, LESS aLess={}) | |
| CACHE_TABLE (const CACHE_TABLE &)=delete | |
| CACHE_TABLE & | operator= (const CACHE_TABLE &)=delete |
| const ENTRY * | Find (const KEY &aKey) const |
| Entry references survive unchanged writes, but not replacement or erasure of their key. | |
| template<typename LOOKUP_KEY> | |
| const ENTRY * | Find (const LOOKUP_KEY &aKey) const |
| const ENTRY & | Set (const KEY &aKey, VALUE aValue) |
| void | Erase (const KEY &aKey) |
| void | Clear () |
| const auto & | Entries () const |
Private Attributes | |
| CACHE_VERSIONS & | m_versions |
| std::map< KEY, std::unique_ptr< const ENTRY >, LESS > | m_entries |
Versioned value table.
Set() keeps the old version for an equal value, which stops change propagation.
Definition at line 60 of file conn_cache.h.
|
inlineexplicit |
Definition at line 69 of file conn_cache.h.
|
delete |
|
inline |
Definition at line 103 of file conn_cache.h.
|
inline |
Definition at line 105 of file conn_cache.h.
Referenced by SCH_CONNECTIVITY::RecordNodes(), SCH_CONNECTIVITY::SignalNodes(), and SCH_CONNECTIVITY::AUXILIARY::Update().
|
inline |
Definition at line 102 of file conn_cache.h.
|
inline |
Entry references survive unchanged writes, but not replacement or erasure of their key.
Definition at line 80 of file conn_cache.h.
Referenced by SCH_CONNECTIVITY::DeriveSignal(), SCH_CONNECTIVITY::CACHE_TABLE< SLOT_KEY, SLOT_INPUT, KEY_LESS >::Find(), SCH_CONNECTIVITY::PrepareBundle(), and SCH_CONNECTIVITY::PUBLICATION::PrepareRows().
|
inline |
Definition at line 83 of file conn_cache.h.
|
delete |
|
inline |
Definition at line 89 of file conn_cache.h.
|
private |
Definition at line 109 of file conn_cache.h.
|
private |
Definition at line 108 of file conn_cache.h.