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

Hash set where all strings - wrapped in Symbol - live in. More...

#include <fe/sym.h>

Inheritance diagram for fe::SymPool:
[legend]

Public Types

using String = Sym::String

Public Member Functions

Constructor & Destruction
 SymPool (const SymPool &)=delete
 SymPool () noexcept
 SymPool (SymPool &&other) noexcept
SymPooloperator= (SymPool)=delete
sym
Sym sym (std::string_view s)
Sym sym (const std::string &s)
constexpr Sym sym (const char *s)
 s is a null-terminated C-string.

Friends

void swap (SymPool &p1, SymPool &p2) noexcept

Detailed Description

Hash set where all strings - wrapped in Symbol - live in.

You can access the SymPool from Driver.

Definition at line 249 of file sym.h.

Member Typedef Documentation

◆ String

Definition at line 251 of file sym.h.

Constructor & Destructor Documentation

◆ SymPool() [1/3]

fe::SymPool::SymPool ( const SymPool & )
delete

References SymPool().

Referenced by operator=(), swap, SymPool(), and SymPool().

◆ SymPool() [2/3]

fe::SymPool::SymPool ( )
inlinenoexcept

Definition at line 259 of file sym.h.

◆ SymPool() [3/3]

fe::SymPool::SymPool ( SymPool && other)
inlinenoexcept

Definition at line 262 of file sym.h.

References swap, and SymPool().

Member Function Documentation

◆ operator=()

SymPool & fe::SymPool::operator= ( SymPool )
delete

References SymPool().

◆ sym() [1/3]

Sym fe::SymPool::sym ( const char * s)
inlineconstexpr

s is a null-terminated C-string.

Definition at line 299 of file sym.h.

References sym().

Referenced by sym().

◆ sym() [2/3]

Sym fe::SymPool::sym ( const std::string & s)
inline

Definition at line 297 of file sym.h.

References sym().

Referenced by sym().

◆ sym() [3/3]

Sym fe::SymPool::sym ( std::string_view s)
inline

Definition at line 271 of file sym.h.

References fe::Sym::Short_String_Bytes.

◆ swap

void swap ( SymPool & p1,
SymPool & p2 )
friend

Definition at line 303 of file sym.h.

References swap, and SymPool().

Referenced by swap, and SymPool().


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