| 
    KiCad PCB EDA Suite
    
   | 
 
#include <component_class_cache_proxy.h>
Public Member Functions | |
| COMPONENT_CLASS_CACHE_PROXY (FOOTPRINT *footprint) | |
| void | SetStaticComponentClass (const COMPONENT_CLASS *compClass) | 
| Sets the static component class Static component classes are assigned in the schematic, and are transferred through the netlist.   | |
| const COMPONENT_CLASS * | GetStaticComponentClass () const | 
| Gets the static component class.   | |
| const COMPONENT_CLASS * | GetComponentClass () const | 
| Gets the full component class (static + dynamic resultant component class)   | |
| void | RecomputeComponentClass (COMPONENT_CLASS_MANAGER *manager=nullptr) const | 
| Forces recomputation of the component class.   | |
| void | InvalidateCache () | 
| Invalidates the cache The component class will be recalculated on the next access.   | |
Protected Attributes | |
| FOOTPRINT * | m_footprint | 
| const COMPONENT_CLASS * | m_staticComponentClass { nullptr } | 
| const COMPONENT_CLASS * | m_dynamicComponentClass { nullptr } | 
| const COMPONENT_CLASS * | m_finalComponentClass { nullptr } | 
| long long int | m_lastTickerValue { -1 } | 
Definition at line 34 of file component_class_cache_proxy.h.
      
  | 
  inlineexplicit | 
Definition at line 37 of file component_class_cache_proxy.h.
References m_footprint.
| const COMPONENT_CLASS * COMPONENT_CLASS_CACHE_PROXY::GetComponentClass | ( | ) | const | 
Gets the full component class (static + dynamic resultant component class)
Definition at line 26 of file component_class_cache_proxy.cpp.
References COMPONENT_CLASS_MANAGER::GetTicker(), m_finalComponentClass, m_footprint, m_lastTickerValue, and RecomputeComponentClass().
      
  | 
  inline | 
Gets the static component class.
Definition at line 48 of file component_class_cache_proxy.h.
References m_staticComponentClass.
      
  | 
  inline | 
Invalidates the cache The component class will be recalculated on the next access.
Definition at line 58 of file component_class_cache_proxy.h.
References m_lastTickerValue.
| void COMPONENT_CLASS_CACHE_PROXY::RecomputeComponentClass | ( | COMPONENT_CLASS_MANAGER * | manager = nullptr | ) | const | 
Forces recomputation of the component class.
Definition at line 39 of file component_class_cache_proxy.cpp.
References COMPONENT_CLASS_MANAGER::GetCombinedComponentClass(), COMPONENT_CLASS_MANAGER::GetDynamicComponentClassesForFootprint(), COMPONENT_CLASS_MANAGER::GetTicker(), m_dynamicComponentClass, m_finalComponentClass, m_footprint, m_lastTickerValue, and m_staticComponentClass.
Referenced by GetComponentClass().
      
  | 
  inline | 
Sets the static component class Static component classes are assigned in the schematic, and are transferred through the netlist.
Definition at line 42 of file component_class_cache_proxy.h.
References m_staticComponentClass.
      
  | 
  mutableprotected | 
Definition at line 64 of file component_class_cache_proxy.h.
Referenced by RecomputeComponentClass().
      
  | 
  mutableprotected | 
Definition at line 65 of file component_class_cache_proxy.h.
Referenced by GetComponentClass(), and RecomputeComponentClass().
      
  | 
  protected | 
Definition at line 61 of file component_class_cache_proxy.h.
Referenced by COMPONENT_CLASS_CACHE_PROXY(), GetComponentClass(), and RecomputeComponentClass().
      
  | 
  mutableprotected | 
Definition at line 67 of file component_class_cache_proxy.h.
Referenced by GetComponentClass(), InvalidateCache(), and RecomputeComponentClass().
      
  | 
  protected | 
Definition at line 63 of file component_class_cache_proxy.h.
Referenced by GetStaticComponentClass(), RecomputeComponentClass(), and SetStaticComponentClass().