FE 0.16.1
Fast, Effecient FrontEnds
Loading...
Searching...
No Matches
fe::Dbg Struct Reference

The debug info of an entity: where it came from and what it was called. More...

#include <fe/dbg.h>

Classes

struct  Hash
struct  Eq

Public Member Functions

Constructors
constexpr Dbg () noexcept=default
constexpr Dbg (Loc loc, Sym sym) noexcept
constexpr Dbg (Loc loc) noexcept
constexpr Dbg (Sym sym) noexcept
Getters
constexpr Sym sym () const noexcept
constexpr Loc loc () const noexcept
constexpr bool is_anon () const noexcept
 Assumes _ as the anonymous name.
constexpr operator bool () const noexcept
Setters
constexpr Dbg & set (Sym sym) noexcept
constexpr Dbg & set (Loc loc) noexcept
Comparison and Hashing
constexpr bool operator== (const Dbg &other) const noexcept

Friends

std::ostream & operator<< (std::ostream &os, const Dbg &dbg)

Detailed Description

The debug info of an entity: where it came from and what it was called.

Definition at line 16 of file dbg.h.

Constructor & Destructor Documentation

◆ Dbg() [1/4]

fe::Dbg::Dbg ( )
constexprdefaultnoexcept

◆ Dbg() [2/4]

fe::Dbg::Dbg ( Loc loc,
Sym sym )
inlineconstexprnoexcept

Definition at line 20 of file dbg.h.

References Dbg(), loc(), and sym().

◆ Dbg() [3/4]

fe::Dbg::Dbg ( Loc loc)
inlineconstexprnoexcept

Definition at line 23 of file dbg.h.

References loc().

◆ Dbg() [4/4]

fe::Dbg::Dbg ( Sym sym)
inlineconstexprnoexcept

Definition at line 25 of file dbg.h.

References sym().

Member Function Documentation

◆ is_anon()

bool fe::Dbg::is_anon ( ) const
inlineconstexprnoexcept

Assumes _ as the anonymous name.

Definition at line 34 of file dbg.h.

References sym().

◆ loc()

Loc fe::Dbg::loc ( ) const
inlineconstexprnoexcept

Definition at line 32 of file dbg.h.

Referenced by Dbg(), Dbg(), and set().

◆ operator bool()

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

Definition at line 35 of file dbg.h.

References sym().

◆ operator==()

bool fe::Dbg::operator== ( const Dbg & other) const
inlineconstexprnoexcept
Note
Like Loc::operator==, this only compares Loc::src by pointer identity.

Definition at line 47 of file dbg.h.

References Dbg().

◆ set() [1/2]

Dbg & fe::Dbg::set ( Loc loc)
inlineconstexprnoexcept

Definition at line 41 of file dbg.h.

References Dbg(), and loc().

◆ set() [2/2]

Dbg & fe::Dbg::set ( Sym sym)
inlineconstexprnoexcept

Definition at line 40 of file dbg.h.

References Dbg(), and sym().

◆ sym()

Sym fe::Dbg::sym ( ) const
inlineconstexprnoexcept

Definition at line 31 of file dbg.h.

Referenced by Dbg(), Dbg(), is_anon(), operator bool(), operator<<, and set().

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Dbg & dbg )
friend

Definition at line 68 of file dbg.h.

References Dbg(), and sym().


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