The Circuit class represents all electrical connections in a project (drawn in the schematics)
More...
#include <circuit.h>
Inherits QObject.
|
| | Circuit ()=delete |
| |
| | Circuit (const Circuit &other)=delete |
| |
| | Circuit (Project &project) |
| |
| | ~Circuit () noexcept |
| |
| Project & | getProject () const noexcept |
| |
| AssemblyVariantList & | getAssemblyVariants () noexcept |
| |
| const AssemblyVariantList & | getAssemblyVariants () const noexcept |
| |
| int | addAssemblyVariant (std::shared_ptr< AssemblyVariant > av, int index=-1) |
| |
| void | removeAssemblyVariant (std::shared_ptr< AssemblyVariant > av) |
| |
| void | setAssemblyVariantName (std::shared_ptr< AssemblyVariant > av, const FileProofName &newName) |
| |
| const QMap< Uuid, NetClass * > & | getNetClasses () const noexcept |
| |
| NetClass * | getNetClassByName (const ElementName &name) const noexcept |
| |
| void | addNetClass (NetClass &netclass) |
| |
| void | removeNetClass (NetClass &netclass) |
| |
| void | setNetClassName (NetClass &netclass, const ElementName &newName) |
| |
| QString | generateAutoNetSignalName () const noexcept |
| |
| const QMap< Uuid, NetSignal * > & | getNetSignals () const noexcept |
| |
| NetSignal * | getNetSignalByName (const QString &name) const noexcept |
| |
| NetSignal * | getNetSignalWithMostElements () const noexcept |
| |
| void | addNetSignal (NetSignal &netsignal) |
| |
| void | removeNetSignal (NetSignal &netsignal) |
| |
| void | setNetSignalName (NetSignal &netsignal, const CircuitIdentifier &newName, bool isAutoName) |
| |
| QString | generateAutoBusName () const noexcept |
| |
| const QMap< Uuid, Bus * > & | getBuses () const noexcept |
| |
| Bus * | getBusByName (const QString &name) const noexcept |
| |
| void | addBus (Bus &bus) |
| |
| void | removeBus (Bus &bus) |
| |
| void | setBusName (Bus &bus, const BusName &newName, bool isAutoName) |
| |
| QString | generateAutoComponentInstanceName (const ComponentPrefix &cmpPrefix) const noexcept |
| |
| const QMap< Uuid, ComponentInstance * > & | getComponentInstances () const noexcept |
| |
| ComponentInstance * | getComponentInstanceByUuid (const Uuid &uuid) const noexcept |
| |
| ComponentInstance * | getComponentInstanceByName (const QString &name) const noexcept |
| |
| void | addComponentInstance (ComponentInstance &cmp) |
| |
| void | removeComponentInstance (ComponentInstance &cmp) |
| |
| void | setComponentInstanceName (ComponentInstance &cmp, const CircuitIdentifier &newName) |
| |
| void | serialize (SExpression &root) const |
| | Serialize into librepcb::SExpression node.
|
| |
| Circuit & | operator= (const Circuit &rhs)=delete |
| |
| bool | operator== (const Circuit &rhs) const noexcept |
| |
| bool | operator!= (const Circuit &rhs) const noexcept |
| |
The Circuit class represents all electrical connections in a project (drawn in the schematics)
Each librepcb::Project object contains exactly one librepcb::Circuit object which contains the whole electrical components and connections. They are created with the schematic editor and used by the board editor. The whole circuit is saved in the file "circuit.lp" in the project's "circuit" directory.
Each Circuit object contains:
◆ Circuit() [1/3]
◆ Circuit() [2/3]
◆ Circuit() [3/3]
◆ ~Circuit()
◆ getProject()
◆ getAssemblyVariants() [1/2]
◆ getAssemblyVariants() [2/2]
◆ addAssemblyVariant()
| int addAssemblyVariant |
( |
std::shared_ptr< AssemblyVariant > |
av, |
|
|
int |
index = -1 |
|
) |
| |
◆ removeAssemblyVariant()
◆ setAssemblyVariantName()
◆ getNetClasses()
◆ getNetClassByName()
◆ addNetClass()
◆ removeNetClass()
| void removeNetClass |
( |
NetClass & |
netclass | ) |
|
◆ setNetClassName()
◆ generateAutoNetSignalName()
| QString generateAutoNetSignalName |
( |
| ) |
const |
|
noexcept |
◆ getNetSignals()
◆ getNetSignalByName()
| NetSignal * getNetSignalByName |
( |
const QString & |
name | ) |
const |
|
noexcept |
◆ getNetSignalWithMostElements()
| NetSignal * getNetSignalWithMostElements |
( |
| ) |
const |
|
noexcept |
◆ addNetSignal()
◆ removeNetSignal()
| void removeNetSignal |
( |
NetSignal & |
netsignal | ) |
|
◆ setNetSignalName()
◆ generateAutoBusName()
| QString generateAutoBusName |
( |
| ) |
const |
|
noexcept |
◆ getBuses()
| const QMap< Uuid, Bus * > & getBuses |
( |
| ) |
const |
|
inlinenoexcept |
◆ getBusByName()
| Bus * getBusByName |
( |
const QString & |
name | ) |
const |
|
noexcept |
◆ addBus()
◆ removeBus()
| void removeBus |
( |
Bus & |
bus | ) |
|
◆ setBusName()
| void setBusName |
( |
Bus & |
bus, |
|
|
const BusName & |
newName, |
|
|
bool |
isAutoName |
|
) |
| |
◆ generateAutoComponentInstanceName()
| QString generateAutoComponentInstanceName |
( |
const ComponentPrefix & |
cmpPrefix | ) |
const |
|
noexcept |
◆ getComponentInstances()
◆ getComponentInstanceByUuid()
◆ getComponentInstanceByName()
◆ addComponentInstance()
◆ removeComponentInstance()
◆ setComponentInstanceName()
◆ serialize()
◆ operator=()
◆ operator==()
| bool operator== |
( |
const Circuit & |
rhs | ) |
const |
|
inlinenoexcept |
◆ operator!=()
| bool operator!= |
( |
const Circuit & |
rhs | ) |
const |
|
inlinenoexcept |
◆ assemblyVariantAdded
◆ assemblyVariantRemoved
◆ netClassAdded
| void netClassAdded |
( |
NetClass & |
netclass | ) |
|
|
signal |
◆ netClassRemoved
| void netClassRemoved |
( |
NetClass & |
netclass | ) |
|
|
signal |
◆ netSignalAdded
◆ netSignalRemoved
| void netSignalRemoved |
( |
NetSignal & |
netsignal | ) |
|
|
signal |
◆ busAdded
| void busAdded |
( |
Bus & |
bus | ) |
|
|
signal |
◆ busRemoved
| void busRemoved |
( |
Bus & |
bus | ) |
|
|
signal |
◆ busRenamed
| void busRenamed |
( |
Bus & |
bus | ) |
|
|
signal |
◆ componentAdded
◆ componentRemoved
◆ netClassDesignRulesModified
| void netClassDesignRulesModified |
( |
| ) |
|
|
signal |
◆ mProject
A reference to the Project object (from the ctor)
◆ mAssemblyVariants
◆ mNetClasses
◆ mNetSignals
◆ mBuses
◆ mComponentInstances
The documentation for this class was generated from the following files:
- /__w/1/s/libs/librepcb/core/project/circuit/circuit.h
- /__w/1/s/libs/librepcb/core/project/circuit/circuit.cpp