|
SILICON
|
#include <projectContext.hpp>
Public Member Functions | |
| const DocumentStore & | documents () const noexcept |
| const CircuitDependencyGraph & | circuitDependencies () const noexcept |
| void | setDocuments (std::vector< Document > documents) |
| void | upsertDocument (Document document) |
| void | insertDocument (Document document, std::size_t index) |
| void | renameDocument (std::string_view oldPath, std::string_view newPath) |
| void | removeDocument (std::string_view documentPath) |
Private Member Functions | |
| void | commit (std::vector< Document > documents, CircuitDependencyGraph dependencies, const DocumentChange &change) noexcept |
Private Attributes | |
| DocumentStore | documentStore |
| CircuitDependencyGraph | dependencyGraph |
Project-owned document state and its derived Circuit dependency index.
Definition at line 30 of file projectContext.hpp.
|
nodiscardnoexcept |
Definition at line 101 of file projectContext.cpp.
|
privatenoexcept |
Definition at line 204 of file projectContext.cpp.
|
nodiscardnoexcept |
Definition at line 96 of file projectContext.cpp.
| void insertDocument | ( | Document | document, |
| std::size_t | index ) |
Definition at line 134 of file projectContext.cpp.
| void removeDocument | ( | std::string_view | documentPath | ) |
Definition at line 187 of file projectContext.cpp.
| void renameDocument | ( | std::string_view | oldPath, |
| std::string_view | newPath ) |
Renames a document and rewrites project document references to its slug.
Definition at line 152 of file projectContext.cpp.
| void setDocuments | ( | std::vector< Document > | documents | ) |
Definition at line 106 of file projectContext.cpp.
| void upsertDocument | ( | Document | document | ) |
Definition at line 115 of file projectContext.cpp.
|
private |
Definition at line 44 of file projectContext.hpp.
|
private |
Definition at line 43 of file projectContext.hpp.