FE 0.5.0
A header-only C++ library for writing frontends
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)
 
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 192 of file sym.h.

Member Typedef Documentation

◆ String

Definition at line 194 of file sym.h.

Constructor & Destructor Documentation

◆ SymPool() [1/3]

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

◆ SymPool() [2/3]

fe::SymPool::SymPool ( )
inlinenoexcept

Definition at line 202 of file sym.h.

◆ SymPool() [3/3]

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

Definition at line 205 of file sym.h.

References swap.

Member Function Documentation

◆ operator=()

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

◆ sym() [1/3]

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

s is a null-terminated C-string.

Definition at line 241 of file sym.h.

References sym().

Referenced by sym().

◆ sym() [2/3]

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

Definition at line 239 of file sym.h.

References sym().

Referenced by sym().

◆ sym() [3/3]

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

Friends And Related Symbol Documentation

◆ swap

void swap ( SymPool p1,
SymPool p2 
)
friend

Definition at line 245 of file sym.h.

Referenced by SymPool().


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