Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
State Class Reference

#include <lalr.h>

+ Collaboration diagram for State:

Public Member Functions

 State (const char *token)
 
bool operator== (const State &o) const
 
 State (Grammar *grammar)
 
bool operator== (const State &other) const
 
bool operator!= (const State &other) const
 
std::pair< ItemPointer, bool > insert (const Item &item)
 
std::pair< ItemPointer, bool > insertClosure (const Item &item)
 

Public Attributes

QByteArray token
 
int next [128]
 
int nextindex
 
char defchar
 
int defnext
 
const char * ident
 
ItemList kernel
 
ItemList closure
 
Bundle bundle
 
QMap< Name, NameSetreads
 
QMap< Name, NameSetfollows
 
RulePointer defaultReduce
 

Detailed Description

Definition at line 255 of file generate_keywords.cpp.

Constructor & Destructor Documentation

◆ State() [1/2]

State::State ( const char * token)
inline

Definition at line 257 of file generate_keywords.cpp.

References next.

◆ State() [2/2]

State::State ( Grammar * grammar)

Definition at line 137 of file lalr.cpp.

Member Function Documentation

◆ insert()

std::pair< ItemPointer, bool > State::insert ( const Item & item)

Definition at line 142 of file lalr.cpp.

References QSet< T >::end(), QSet< T >::insert(), it, item, and kernel.

Referenced by Automaton::build().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertClosure()

std::pair< ItemPointer, bool > State::insertClosure ( const Item & item)

Definition at line 152 of file lalr.cpp.

References closure, QSet< T >::end(), QSet< T >::insert(), it, and item.

+ Here is the call graph for this function:

◆ operator!=()

bool State::operator!= ( const State & other) const
inline

Definition at line 116 of file lalr.h.

References kernel, and other().

+ Here is the call graph for this function:

◆ operator==() [1/2]

bool State::operator== ( const State & o) const
inline

Definition at line 270 of file generate_keywords.cpp.

References defchar, defnext, ident, nextindex, o, and token.

◆ operator==() [2/2]

bool State::operator== ( const State & other) const
inline

Definition at line 113 of file lalr.h.

References kernel, and other().

+ Here is the call graph for this function:

Member Data Documentation

◆ bundle

Bundle State::bundle

Definition at line 125 of file lalr.h.

◆ closure

ItemList State::closure

Definition at line 124 of file lalr.h.

Referenced by insertClosure().

◆ defaultReduce

RulePointer State::defaultReduce

Definition at line 128 of file lalr.h.

◆ defchar

char State::defchar

Definition at line 265 of file generate_keywords.cpp.

Referenced by operator==().

◆ defnext

int State::defnext

Definition at line 266 of file generate_keywords.cpp.

Referenced by operator==().

◆ follows

QMap<Name, NameSet> State::follows

Definition at line 127 of file lalr.h.

◆ ident

const char* State::ident

Definition at line 268 of file generate_keywords.cpp.

Referenced by operator==().

◆ kernel

ItemList State::kernel

Definition at line 123 of file lalr.h.

Referenced by insert(), operator!=(), and operator==().

◆ next

int State::next[128]

Definition at line 262 of file generate_keywords.cpp.

Referenced by State().

◆ nextindex

int State::nextindex

Definition at line 263 of file generate_keywords.cpp.

Referenced by operator==().

◆ reads

QMap<Name, NameSet> State::reads

Definition at line 126 of file lalr.h.

◆ token

QByteArray State::token

Definition at line 261 of file generate_keywords.cpp.

Referenced by operator==().


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