|
SILICON
|
#include <projectDocument.hpp>

Public Types | |
| using | Listener = std::function<void(const DocumentChange&)> |
Public Member Functions | |
| const Document * | find (std::string_view documentPath) const noexcept |
| bool | contains (std::string_view documentPath) const noexcept |
| bool | contains (DocumentType type) const noexcept |
| const std::vector< Document > & | getDocuments () const noexcept |
| std::optional< std::size_t > | indexOf (std::string_view documentPath) const |
| std::uint64_t | addListener (Listener listener) const |
| void | removeListener (std::uint64_t id) const |
Private Member Functions | |
| void | commitDocuments (std::vector< Document > documents, const DocumentChange &change) noexcept |
Private Attributes | |
| std::vector< Document > | documents |
| SILICON::core::CallbackRegistry< const DocumentChange & > | listeners |
Friends | |
| class | ProjectContext |
Definition at line 137 of file projectDocument.hpp.
| using Listener = std::function<void(const DocumentChange&)> |
Definition at line 139 of file projectDocument.hpp.
| std::uint64_t addListener | ( | Listener | listener | ) | const |
Definition at line 292 of file projectDocument.cpp.
|
privatenoexcept |
Definition at line 302 of file projectDocument.cpp.
|
nodiscardnoexcept |
Definition at line 272 of file projectDocument.cpp.
|
nodiscardnoexcept |
Definition at line 267 of file projectDocument.cpp.
|
nodiscardnoexcept |
Returned pointers/references are invalidated by any store mutation.
Definition at line 261 of file projectDocument.cpp.
|
nodiscardnoexcept |
Definition at line 278 of file projectDocument.cpp.
|
nodiscard |
Definition at line 284 of file projectDocument.cpp.
| void removeListener | ( | std::uint64_t | id | ) | const |
Definition at line 297 of file projectDocument.cpp.
|
friend |
Definition at line 152 of file projectDocument.hpp.
|
private |
Definition at line 157 of file projectDocument.hpp.
|
mutableprivate |
Definition at line 158 of file projectDocument.hpp.