Fray Engine
Loading...
Searching...
No Matches
Class List
Here are the classes, structs, unions and interfaces with brief descriptions:
[detail level 1234]
 Nfray
 Nstate
 CStateManagerOwns a SQLite connection and a typed key/value state table. Database operations serialize on a recursive mutex; the attached FileManager is borrowed, not owned
 Nconsole
 CEntryListThe Console entries the Engine owns and the Renderer shows, keyed by UID. The UID is the one stamped on the message the entry describes, so the Engine, the disk log and the Renderer all refer to the same thing. Every change bumps the entry's revision, which lets the Renderer ignore anything older than what it has. The list is bounded; the oldest entries are forgotten first. Safe to use from any thread
 CConfirmationWhat confirm() changed
 Nlog
 CEngineLogSinkCaptures Engine logs before managers exist and forwards them once attached. Construct before startup logging. The attachment must be destroyed before its managers
 CCapturedAn owned log line captured before the managers were attached
 CStateShared callback state, kept alive by in-flight sink snapshots
 CActiveCallReleases an in-flight call even if recording throws
 CRecursionGuardRestores the thread-local recursion guard
 CAttachmentKeeps the sink attached to live managers and detaches it on destruction. Declare after the managers so it is destroyed before them
 CProjectScopeTemporarily tag log lines on the calling thread, then restore its previous tag. Construct and destroy the scope on the same thread
 CSinkSuppressionKeeps the calling thread's printed lines out of the sink while it lives, then restores the previous setting. Used for lines that are recorded elsewhere under their own identity. Construct and destroy on the same thread
 CConsoleSuppressionKeeps lines in the persistent log but out of the Console for this thread's scope
 Nfiles
 CFileManagerOwns one working directory, its database name and a nonblocking file lock. Project workspaces additionally have archive paths and packaging operations. Operations run on the calling thread; the class has no internal mutex and callers must serialize access. State managers must detach before saving, closing or destroying this manager
 CProjectLockOwns the operating-system handle and path of a project lock file
 Nwatch
 CFileIdFilesystem identity surviving renames: device and inode, or volume and file index
 CChangeDescribes a detected change to the watched root or one of its entries
 CFileWatcherDetects folder-tree changes by comparing snapshots and queues them for subscribers. poll() scans on its calling thread; dispatch() invokes handlers on its calling thread. run() is intended for a ThreadManager thread. Scan state and queue state have separate mutexes
 CEntrySnapshot metadata for one filesystem entry
 CSubscriberSubscription identifier and callbacks copied for dispatch
 Nipc
 CTCPServerListens on one TCP port and exchanges frames with the connected clients. All members and handlers run on the network thread (the thread running the io_context); the only exceptions are the constructor/destructor and port(). Shared ownership keeps it alive while async operations are pending
 CIPCManagerOwns the TCP servers and the threads around them
 Nmessage
 CPrefixFixed-size routing prefix at the start of every frame; routers read only this. All integers are big-endian on the wire. Layout: 0 version | 1 destinationKind | 2-5 destinationId | 6 senderKind | 7-10 senderId 11-14 operationId | 15-18 length | 19-22 headerLength | 23-38 uid | 39 category
 CInDataA parsed incoming message. The payload is a view into the frame, which this keeps alive via shared ownership
 CFrameOptionsEverything FrameBuilder needs to build one outgoing Engine message
 CFrameBuilderBuilds outgoing frames sent by the Engine (sender is always the Engine). Stateless; safe to use from any thread
 Nhistory
 CNodeOne recorded history action with domain-defined opaque payload
 CHistoryManagerAccesses project undo/redo trees stored beside state in the project database. Each domain has a head; recording after undo creates a recoverable branch. The referenced state must outlive this manager. Database operations run on the calling thread under the state mutex
 Nlogs
 CEntryOne log line from a process. This store instance assigns arrivedUs as an increasing microsecond timestamp used for sorting and paging
 CQueryFilters and cursor for a page of log entries
 CPageA page of matching log entries and its exhaustion status
 CLogStorePersist and query application and project logs across session SQLite files. Project logs use their working folder's logs directory. Pages span the application and currently open projects
 CDatabaseOwn an SQLite connection and close it on destruction
 CFolderAssociate a log folder with its live session database
 Nrouting
 CNeighborMonitorTracks neighbor liveness and health from what the router hears, and reports state transitions. Not thread safe: all calls and callbacks run on the router (engine message) thread. Never blocks or waits on a neighbor; the clock is injected so time-based rules (3s suspect/degraded, 10s down/unreachable) can be tested. It holds no readiness table itself; the owning router is the source of truth, read through the State callback
 CQueueHealth
 CHealthReport
 CNeighbor
 COutgoingRouterThe router thread's single source of truth about which neighbors are ready, plus the messages waiting for them. Nothing here is thread safe: only the router thread may touch it. Nothing waits on a neighbor either. A message for a neighbor that is not ready stays in its queue until the neighbor says it is ready, its time to live runs out, or the neighbor is declared down and its queue is discarded
 CQueueHealth
 CEntry
 Nthreads
 CStopTokenCooperative cancellation shared by every copy of a token. Copies share one state guarded by an internal mutex, so any thread may use any copy
 CState
 CTaskQueueA task loop that runs on one thread. Other threads post work to it. Tasks run one at a time in posting order. post() and shutdown() are safe from any thread; run() belongs to the one thread that drains it
 CThreadManagerRegistry of the engine's threads: starts them, names them, asks them to stop and joins them. Every method is safe from any thread; one internal mutex guards the registry and is never held while joining or running thread bodies. The destructor logs the names of threads still running, requests stop on all, and joins them (blocking). Not copyable
 CEntry
 CFrayManagerOwns and coordinates projects, their queues, application work, prompts, and logs. Project work runs on separate project threads; drive manager operations from one controlling thread
 COpeningDecisionStatusLatest database-choice action and its result, once it finishes
 COpeningOriginAddress of the process that requested a project open
 COpeningStatusA queued project open and its result, once finished
 CProjectLogWorkerDedicated queue and worker for one project's log writes
 CEntryAssociates a project and its queue with its managed worker thread
 CShutdownEntryProject resources retained while shutdown progresses
 CPendingPromptRetains a prompt request and its eventual response until consumed
 CCloseTaskGuardEnsures a queued close clears its closing marker even on early exit
 CDatabaseChoiceChooses an existing candidate database or a new database when opening is ambiguous
 CProjectManagerOwns a project’s files, state stores, watcher and registered threads. Public operations synchronize their own mutable state unless they return a reference or expose queue-owned pendingStep. Opening, closing and file-change handling are intended for the project’s own thread; callers must keep borrowed references valid and coordinate their use
 CCloseStatusThe latest queued close and its result, once finished
 CRenameStatusThe latest queued rename and its result, once finished
 CRenameRequestRename arguments captured before the log worker suspends its session
 CPendingStepUndo/redo request waiting asynchronously for renderer-supplied revisions; used only on the project queue
 CProjectMessageResultProject message status and optional response frame