SILICON
Loading...
Searching...
No Matches
ProjectContext Class Reference

#include <projectContext.hpp>

Collaboration diagram for ProjectContext:

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

Detailed Description

Project-owned document state and its derived Circuit dependency index.

Definition at line 30 of file projectContext.hpp.

Member Function Documentation

◆ circuitDependencies()

const CircuitDependencyGraph & circuitDependencies ( ) const
nodiscardnoexcept

Definition at line 101 of file projectContext.cpp.

◆ commit()

void commit ( std::vector< Document > documents,
CircuitDependencyGraph dependencies,
const DocumentChange & change )
privatenoexcept

Definition at line 204 of file projectContext.cpp.

◆ documents()

const DocumentStore & documents ( ) const
nodiscardnoexcept

Definition at line 96 of file projectContext.cpp.

◆ insertDocument()

void insertDocument ( Document document,
std::size_t index )

Definition at line 134 of file projectContext.cpp.

◆ removeDocument()

void removeDocument ( std::string_view documentPath)

Definition at line 187 of file projectContext.cpp.

◆ renameDocument()

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.

◆ setDocuments()

void setDocuments ( std::vector< Document > documents)

Definition at line 106 of file projectContext.cpp.

◆ upsertDocument()

void upsertDocument ( Document document)

Definition at line 115 of file projectContext.cpp.

Member Data Documentation

◆ dependencyGraph

CircuitDependencyGraph dependencyGraph
private

Definition at line 44 of file projectContext.hpp.

◆ documentStore

DocumentStore documentStore
private

Definition at line 43 of file projectContext.hpp.


The documentation for this class was generated from the following files: