![]() |
LibrePCB Developers Documentation
|
Cache for fast access to library elements. More...
#include <libraryelementcache.h>
Inherits QObject.
Collaboration diagram for LibraryElementCache:Signals | |
| void | scanStarted () |
| void | scanSucceeded () |
Public Member Functions | |
| LibraryElementCache ()=delete | |
| LibraryElementCache (const LibraryElementCache &other)=delete | |
| LibraryElementCache (const WorkspaceLibraryDb &db, QObject *parent=nullptr) noexcept | |
| ~LibraryElementCache () noexcept | |
| void | reset () noexcept |
| std::shared_ptr< const ComponentCategory > | getComponentCategory (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const PackageCategory > | getPackageCategory (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const Symbol > | getSymbol (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const Package > | getPackage (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const Component > | getComponent (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const Device > | getDevice (const Uuid &uuid, bool throwIfNotFound) const |
| std::shared_ptr< const Organization > | getOrganization (const Uuid &uuid, bool throwIfNotFound) const |
| LibraryElementCache & | operator= (const LibraryElementCache &rhs)=delete |
Private Member Functions | |
| template<typename T > | |
| std::shared_ptr< const T > | getElement (QHash< Uuid, std::shared_ptr< const T > > &container, const Uuid &uuid, bool throwIfNotFound) const |
Private Attributes | |
| QPointer< const WorkspaceLibraryDb > | mDb |
| QHash< Uuid, std::shared_ptr< const ComponentCategory > > | mCmpCat |
| QHash< Uuid, std::shared_ptr< const PackageCategory > > | mPkgCat |
| QHash< Uuid, std::shared_ptr< const Symbol > > | mSym |
| QHash< Uuid, std::shared_ptr< const Package > > | mPkg |
| QHash< Uuid, std::shared_ptr< const Component > > | mCmp |
| QHash< Uuid, std::shared_ptr< const Device > > | mDev |
| QHash< Uuid, std::shared_ptr< const Organization > > | mOrg |
Cache for fast access to library elements.
|
delete |
|
delete |
|
explicitnoexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
Here is the call graph for this function:
Here is the caller graph for this function:| std::shared_ptr< const ComponentCategory > getComponentCategory | ( | const Uuid & | uuid, |
| bool | throwIfNotFound | ||
| ) | const |
Here is the call graph for this function:| std::shared_ptr< const PackageCategory > getPackageCategory | ( | const Uuid & | uuid, |
| bool | throwIfNotFound | ||
| ) | const |
Here is the call graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
Here is the call graph for this function:| std::shared_ptr< const Organization > getOrganization | ( | const Uuid & | uuid, |
| bool | throwIfNotFound | ||
| ) | const |
Here is the call graph for this function:
|
delete |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
private |
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |