KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_CONNECTIVITY::FACADE_STATE Struct Reference

Classes

struct  NET_ITEMS
 
struct  TEXT_CHECKS
 

Public Member Functions

SCH_SHEET_LIST SourcePaths (SCHEMATIC &aSchematic) const
 
void RefreshNetItems ()
 
std::vector< INST_IDLiveInstances () const
 
bool AnyLive (NODE_ID aNode, std::span< const INST_ID > aLive) const
 
std::optional< NODE_IDBusNode (const wxString &aName) const
 
std::optional< NET_GROUPGroup (NODE_ID aNode, std::span< const INST_ID > aLive, const std::weak_ptr< const FACADE_STATE > &aState) const
 
std::vector< NET_GROUPGroups (std::vector< NODE_ID > aNodes, std::span< const INST_ID > aLive, const std::weak_ptr< const FACADE_STATE > &aState) const
 
const PUBLISHED_COMPONENTNet (NODE_ID aNode, INST_ID aInstance) const
 
wxString Name (const PUBLISHED_COMPONENT &aComponent, bool aIgnoreSheet) const
 
KIID_PATH Sheet (const std::optional< ITEM_KEY > &aDriver) const
 
BUS_MEMBERS Members (NODE_ID aNode, INST_ID aInstance, const std::weak_ptr< const FACADE_STATE > &aState, const ITEM_RESULT *aRow=nullptr) const
 
SCH_SCREENScreen (INST_ID aInstance) const
 
SCH_SCREENScreen (const std::weak_ptr< const SCH_SCREEN::CONNECTIVITY_SOURCE > &aSource) const
 
bool Current (const SCH_SCREEN &aScreen) const
 
const ITEM_RESULTRow (const ITEM_KEY &aItem) const
 
SCH_ITEMResolve (const ITEM_KEY &aItem) const
 

Public Attributes

ENGINE engine
 
uint64_t resetGeneration = 0
 
uint64_t dispatchGeneration = 0
 
uint64_t nextListener = 0
 
std::map< uint64_t, std::function< void(const CHANGE_SET &)> > listeners
 
uint64_t textEpoch = 0
 
std::optional< MODEL_TEXT_CONTEXT > textContext
 
bool publicationApplied = false
 
std::optional< std::map< KIID_PATH, TEXT_CHECKS > > textChecks
 
std::optional< std::map< KIID_PATH, std::vector< SIMULATION_MODEL_FACT > > > simulationModels
 
std::map< INST_ID, std::weak_ptr< const SCH_SCREEN::CONNECTIVITY_SOURCE > > sources
 
std::map< NODE_ID, std::shared_ptr< const NET_ITEMS > > netItems
 
unsigned publicationHolds = 0
 

Detailed Description

Definition at line 203 of file conn_facade.cpp.

Member Function Documentation

◆ AnyLive()

bool SCH_CONNECTIVITY::FACADE_STATE::AnyLive ( NODE_ID aNode,
std::span< const INST_ID > aLive ) const
inline

Definition at line 295 of file conn_facade.cpp.

References netItems.

◆ BusNode()

std::optional< NODE_ID > SCH_CONNECTIVITY::FACADE_STATE::BusNode ( const wxString & aName) const
inline

Definition at line 305 of file conn_facade.cpp.

References SCH_CONNECTIVITY::BUNDLE, and engine.

◆ Current()

bool SCH_CONNECTIVITY::FACADE_STATE::Current ( const SCH_SCREEN & aScreen) const
inline

Definition at line 480 of file conn_facade.cpp.

References SCH_SCREEN::ConnectivityId(), SCH_SCREEN::ConnectivityRevision(), and engine.

Referenced by Row().

◆ Group()

std::optional< NET_GROUP > SCH_CONNECTIVITY::FACADE_STATE::Group ( NODE_ID aNode,
std::span< const INST_ID > aLive,
const std::weak_ptr< const FACADE_STATE > & aState ) const
inline

◆ Groups()

std::vector< NET_GROUP > SCH_CONNECTIVITY::FACADE_STATE::Groups ( std::vector< NODE_ID > aNodes,
std::span< const INST_ID > aLive,
const std::weak_ptr< const FACADE_STATE > & aState ) const
inline

Definition at line 341 of file conn_facade.cpp.

References engine, Group(), group, SCH_CONNECTIVITY::INVALID_ID, and result.

◆ LiveInstances()

std::vector< INST_ID > SCH_CONNECTIVITY::FACADE_STATE::LiveInstances ( ) const
inline

Definition at line 281 of file conn_facade.cpp.

References Screen(), and sources.

◆ Members()

BUS_MEMBERS SCH_CONNECTIVITY::FACADE_STATE::Members ( NODE_ID aNode,
INST_ID aInstance,
const std::weak_ptr< const FACADE_STATE > & aState,
const ITEM_RESULT * aRow = nullptr ) const
inline

◆ Name()

wxString SCH_CONNECTIVITY::FACADE_STATE::Name ( const PUBLISHED_COMPONENT & aComponent,
bool aIgnoreSheet ) const
inline

◆ Net()

const PUBLISHED_COMPONENT * SCH_CONNECTIVITY::FACADE_STATE::Net ( NODE_ID aNode,
INST_ID aInstance ) const
inline

Definition at line 367 of file conn_facade.cpp.

References engine, netItems, and Screen().

◆ RefreshNetItems()

void SCH_CONNECTIVITY::FACADE_STATE::RefreshNetItems ( )
inline

◆ Resolve()

SCH_ITEM * SCH_CONNECTIVITY::FACADE_STATE::Resolve ( const ITEM_KEY & aItem) const
inline

◆ Row()

const ITEM_RESULT * SCH_CONNECTIVITY::FACADE_STATE::Row ( const ITEM_KEY & aItem) const
inline

◆ Screen() [1/2]

SCH_SCREEN * SCH_CONNECTIVITY::FACADE_STATE::Screen ( const std::weak_ptr< const SCH_SCREEN::CONNECTIVITY_SOURCE > & aSource) const
inline

◆ Screen() [2/2]

SCH_SCREEN * SCH_CONNECTIVITY::FACADE_STATE::Screen ( INST_ID aInstance) const
inline

Definition at line 450 of file conn_facade.cpp.

References Screen(), and sources.

Referenced by LiveInstances(), Net(), Resolve(), Row(), Screen(), and SourcePaths().

◆ Sheet()

KIID_PATH SCH_CONNECTIVITY::FACADE_STATE::Sheet ( const std::optional< ITEM_KEY > & aDriver) const
inline

Definition at line 396 of file conn_facade.cpp.

References engine, and Resolve().

◆ SourcePaths()

SCH_SHEET_LIST SCH_CONNECTIVITY::FACADE_STATE::SourcePaths ( SCHEMATIC & aSchematic) const
inline

Member Data Documentation

◆ dispatchGeneration

uint64_t SCH_CONNECTIVITY::FACADE_STATE::dispatchGeneration = 0

Definition at line 219 of file conn_facade.cpp.

◆ engine

ENGINE SCH_CONNECTIVITY::FACADE_STATE::engine

◆ listeners

std::map<uint64_t, std::function<void( const CHANGE_SET& )> > SCH_CONNECTIVITY::FACADE_STATE::listeners

Definition at line 221 of file conn_facade.cpp.

◆ netItems

std::map<NODE_ID, std::shared_ptr<const NET_ITEMS> > SCH_CONNECTIVITY::FACADE_STATE::netItems

Definition at line 228 of file conn_facade.cpp.

Referenced by AnyLive(), Group(), Members(), Net(), and RefreshNetItems().

◆ nextListener

uint64_t SCH_CONNECTIVITY::FACADE_STATE::nextListener = 0

Definition at line 220 of file conn_facade.cpp.

◆ publicationApplied

bool SCH_CONNECTIVITY::FACADE_STATE::publicationApplied = false

Definition at line 224 of file conn_facade.cpp.

Referenced by SourcePaths().

◆ publicationHolds

unsigned SCH_CONNECTIVITY::FACADE_STATE::publicationHolds = 0

Definition at line 229 of file conn_facade.cpp.

Referenced by Row(), and Screen().

◆ resetGeneration

uint64_t SCH_CONNECTIVITY::FACADE_STATE::resetGeneration = 0

Definition at line 218 of file conn_facade.cpp.

◆ simulationModels

std::optional<std::map<KIID_PATH, std::vector<SIMULATION_MODEL_FACT> > > SCH_CONNECTIVITY::FACADE_STATE::simulationModels

Definition at line 226 of file conn_facade.cpp.

◆ sources

std::map<INST_ID, std::weak_ptr<const SCH_SCREEN::CONNECTIVITY_SOURCE> > SCH_CONNECTIVITY::FACADE_STATE::sources

Definition at line 227 of file conn_facade.cpp.

Referenced by LiveInstances(), and Screen().

◆ textChecks

std::optional<std::map<KIID_PATH, TEXT_CHECKS> > SCH_CONNECTIVITY::FACADE_STATE::textChecks

Definition at line 225 of file conn_facade.cpp.

◆ textContext

std::optional<MODEL_TEXT_CONTEXT> SCH_CONNECTIVITY::FACADE_STATE::textContext

Definition at line 223 of file conn_facade.cpp.

◆ textEpoch

uint64_t SCH_CONNECTIVITY::FACADE_STATE::textEpoch = 0

Definition at line 222 of file conn_facade.cpp.


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