tket
Loading...
Searching...
No Matches
Static Public Member Functions | Friends | List of all members
tket::SymTable Struct Reference

Utility class for accessing the global symbol table. More...

#include <SymTable.hpp>

Static Public Member Functions

static Sym fresh_symbol (const std::string &preferred="a")
 Create a new symbol (not currently registered), and register it.
 
static void register_symbol (const std::string &symbol)
 
static void register_symbols (const SymSet &ss)
 

Friends

void test_Ops::clear_symbol_table ()
 

Detailed Description

Utility class for accessing the global symbol table.

All members are static. There are no instances of this class.

When an operation is created using get_op_ptr, any symbols in its parameters are added to a global registry of symbols.

Definition at line 34 of file SymTable.hpp.

Member Function Documentation

◆ fresh_symbol()

Sym tket::SymTable::fresh_symbol ( const std::string &  preferred = "a")
static

Create a new symbol (not currently registered), and register it.

Definition at line 24 of file SymTable.cpp.

◆ register_symbol()

void tket::SymTable::register_symbol ( const std::string &  symbol)
static

Definition at line 36 of file SymTable.cpp.

◆ register_symbols()

void tket::SymTable::register_symbols ( const SymSet ss)
static

Definition at line 40 of file SymTable.cpp.

Friends And Related Symbol Documentation

◆ test_Ops::clear_symbol_table


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