MTMS main
Modern Turing Machine Simulator
Loading...
Searching...
No Matches
symbol.hpp File Reference

Symbol class to represent the symbols on the Turing Machine's tape. More...

#include <iostream>
#include <ostream>
Include dependency graph for symbol.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Symbol
 Represents a single symbol on the Turing Machine's tape. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Symbol &symbol) noexcept
 Global implementation of the stream insertion operator for Symbol.
 

Variables

constexpr char kBlank = ' '
 Representation of the default blank symbol used to fill the Turing Machine's tape.
 

Detailed Description

Symbol class to represent the symbols on the Turing Machine's tape.

Author
wh0crypt (wh0cr.nosp@m.ypt@.nosp@m.proto.nosp@m.n.me)
Version
0.1
Date
2026-06-27

Definition in file symbol.hpp.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Symbol symbol 
)
inlinenoexcept

Global implementation of the stream insertion operator for Symbol.

Overloaded stream insertion operator for native stream integration.

Note
Marked as inline to prevent ODR violations across multiple translation units.

Definition at line 92 of file symbol.hpp.

Variable Documentation

◆ kBlank

constexpr char kBlank = ' '
constexpr

Representation of the default blank symbol used to fill the Turing Machine's tape.

Definition at line 20 of file symbol.hpp.

Referenced by Project::parse_alphabets(), Project::parse_transitions(), Tape::print(), and Tape::read().