FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
fe::DbgKey Class Reference

Opaque handle to a Dbg interned in a Driver; see Driver::dbg. More...

#include <fe/dbg.h>

Public Member Functions

constexpr DbgKey () noexcept=default
 The empty Dbg.
constexpr operator bool () const noexcept
 Not the empty Dbg?
constexpr bool operator== (const DbgKey &) const noexcept=default

Friends

struct Driver

Detailed Description

Opaque handle to a Dbg interned in a Driver; see Driver::dbg.

Handing one node another's key copies the handle verbatim: no Dbg is materialised and nothing is looked up in the Driver's table.

Warning
A key is only meaningful within the Driver that interned it.

Definition at line 102 of file dbg.h.

Constructor & Destructor Documentation

◆ DbgKey()

fe::DbgKey::DbgKey ( )
constexprdefaultnoexcept

The empty Dbg.

Referenced by fe::Driver::dbg(), and operator==().

Member Function Documentation

◆ operator bool()

fe::DbgKey::operator bool ( ) const
inlineexplicitconstexprnoexcept

Not the empty Dbg?

Definition at line 106 of file dbg.h.

◆ operator==()

bool fe::DbgKey::operator== ( const DbgKey & ) const
constexprdefaultnoexcept

References DbgKey().

◆ Driver

friend struct Driver
friend

Definition at line 115 of file dbg.h.

References Driver.

Referenced by Driver.


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