Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions | Static Public Member Functions | Friends
alphabet::StartSymbol Class Reference

Represents start symbol used as initializing symbol of a string. More...

#include <StartSymbol.h>

Public Member Functions

 StartSymbol ()
 Creates a new instance of the symbol. More...
 
std::strong_ordering operator<=> (const StartSymbol &) const
 
bool operator== (const StartSymbol &) const
 

Static Public Member Functions

template<typename Base >
static Base instance ()
 Factory for the symbol construction of the symbol based on given type. More...
 

Friends

ext::ostreamoperator<< (ext::ostream &out, const StartSymbol &instance)
 

Detailed Description

Represents start symbol used as initializing symbol of a string.

Constructor & Destructor Documentation

◆ StartSymbol()

alphabet::StartSymbol::StartSymbol ( )
explicitdefault

Creates a new instance of the symbol.

Here is the caller graph for this function:

Member Function Documentation

◆ instance()

template<typename Base >
Base alphabet::StartSymbol::instance
inlinestatic

Factory for the symbol construction of the symbol based on given type.

Here is the call graph for this function:

◆ operator<=>()

std::strong_ordering alphabet::StartSymbol::operator<=> ( const StartSymbol ) const
inline

The three way comparison implementation

Parameters
otherthe other instance
Returns
the ordering between this object and the other.

◆ operator==()

bool alphabet::StartSymbol::operator== ( const StartSymbol ) const
inline

The equality comparison implementation.

Parameters
otherthe other object to compare with.
Returns
true if this and other objects are equal, false othervise

Friends And Related Function Documentation

◆ operator<<

ext::ostream & operator<< ( ext::ostream out,
const StartSymbol instance 
)
friend

Print this object as raw representation to ostream.

Parameters
osostream where to print
instanceobject to print
Returns
modified output stream

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