Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
contur::KernelDiagnostics Class Referencefinal

Diagnostics adapter that captures snapshots from IKernel facade. More...

#include <kernel_diagnostics.h>

Inheritance diagram for contur::KernelDiagnostics:

Public Member Functions

 KernelDiagnostics (const IKernel &kernel)
 Constructs diagnostics adapter bound to a kernel facade.
 ~KernelDiagnostics () override
 Destroys diagnostics adapter.
 KernelDiagnostics (const KernelDiagnostics &)=delete
 Copy construction is disabled.
KernelDiagnosticsoperator= (const KernelDiagnostics &)=delete
 Copy assignment is disabled.
 KernelDiagnostics (KernelDiagnostics &&) noexcept
 Move-constructs diagnostics adapter state.
KernelDiagnosticsoperator= (KernelDiagnostics &&) noexcept
 Move-assigns diagnostics adapter state.
Result< KernelDiagnosticsSnapshotcaptureSnapshot () const override
 Captures a diagnostics snapshot.
Public Member Functions inherited from contur::IKernelDiagnostics
virtual ~IKernelDiagnostics ()=default
 Virtual destructor for interface-safe polymorphic cleanup.

Private Attributes

std::unique_ptr< Impl > impl_

Detailed Description

Diagnostics adapter that captures snapshots from IKernel facade.

Definition at line 15 of file kernel_diagnostics.h.

Constructor & Destructor Documentation

◆ KernelDiagnostics() [1/3]

contur::KernelDiagnostics::KernelDiagnostics ( const IKernel & kernel)
explicit

Constructs diagnostics adapter bound to a kernel facade.

Parameters
kernelKernel facade used as diagnostics source.

Referenced by KernelDiagnostics(), KernelDiagnostics(), operator=(), and operator=().

◆ ~KernelDiagnostics()

contur::KernelDiagnostics::~KernelDiagnostics ( )
override

Destroys diagnostics adapter.

◆ KernelDiagnostics() [2/3]

contur::KernelDiagnostics::KernelDiagnostics ( const KernelDiagnostics & )
delete

Copy construction is disabled.

References KernelDiagnostics().

◆ KernelDiagnostics() [3/3]

contur::KernelDiagnostics::KernelDiagnostics ( KernelDiagnostics && )
noexcept

Move-constructs diagnostics adapter state.

References KernelDiagnostics().

Member Function Documentation

◆ captureSnapshot()

Result< KernelDiagnosticsSnapshot > contur::KernelDiagnostics::captureSnapshot ( ) const
nodiscardoverridevirtual

Captures a diagnostics snapshot.

Returns
Diagnostics snapshot or an error.

Implements contur::IKernelDiagnostics.

References captureSnapshot().

Referenced by captureSnapshot().

◆ operator=() [1/2]

KernelDiagnostics & contur::KernelDiagnostics::operator= ( const KernelDiagnostics & )
delete

Copy assignment is disabled.

References KernelDiagnostics().

◆ operator=() [2/2]

KernelDiagnostics & contur::KernelDiagnostics::operator= ( KernelDiagnostics && )
noexcept

Move-assigns diagnostics adapter state.

References KernelDiagnostics().

Member Data Documentation

◆ impl_

std::unique_ptr<Impl> contur::KernelDiagnostics::impl_
private

Definition at line 42 of file kernel_diagnostics.h.


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