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

Represents initial symbol used as an initial symbol of a grammar. More...

#include <InitialSymbol.h>

Public Member Functions

 InitialSymbol ()
 Creates a new instance of the symbol. More...
 
std::strong_ordering operator<=> (const InitialSymbol &) const
 
bool operator== (const InitialSymbol &) 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 InitialSymbol &instance)
 

Detailed Description

Represents initial symbol used as an initial symbol of a grammar.

Constructor & Destructor Documentation

◆ InitialSymbol()

alphabet::InitialSymbol::InitialSymbol ( )
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::InitialSymbol::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::InitialSymbol::operator<=> ( const InitialSymbol ) const
inline

The three way comparison implementation

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

◆ operator==()

bool alphabet::InitialSymbol::operator== ( const InitialSymbol ) 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 InitialSymbol 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: