DfaState Class

Definition

Line 10 of scmlg/Dfa.cm

Constructors & Destructor

public DfaState(int id_, const List<NfaState*>& nfaStates_)

Member Functions

public bool Accept() const
public void AddNext(DfaState* n)
public int Id() const
public bool IsMarked() const
public void Mark()
public DfaState* Next(int i) const
public const List<NfaState*>& NfaStates() const
public void SetAccept(bool accept_)
public void SetStatementIndex(int index)
public int StatementIndex() const

Member Variables

private bool accept
private int id
private bool marked
private List<DfaState*> next
private List<NfaState*> nfaStates
private int statementIndex

Constructor& Destructor Details

DfaState Constructor

public DfaState(int id_, const List<NfaState*>& nfaStates_)

Definition
Line 12 of scmlg/Dfa.cm


Member Function Details

Accept Member Function

public bool Accept()

Definition
Line 28 of scmlg/Dfa.cm


AddNext Member Function

public void AddNext(DfaState* n)

Definition
Line 48 of scmlg/Dfa.cm


Id Member Function

public int Id()

Definition
Line 16 of scmlg/Dfa.cm


IsMarked Member Function

public bool IsMarked()

Definition
Line 20 of scmlg/Dfa.cm


Mark Member Function

public void Mark()

Definition
Line 24 of scmlg/Dfa.cm


Next Member Function

public DfaState* Next(int i)

Definition
Line 52 of scmlg/Dfa.cm


NfaStates Member Function

public const List<NfaState*>& NfaStates()

Definition
Line 44 of scmlg/Dfa.cm


SetAccept Member Function

public void SetAccept(bool accept_)

Definition
Line 32 of scmlg/Dfa.cm


SetStatementIndex Member Function

public void SetStatementIndex(int index)

Definition
Line 40 of scmlg/Dfa.cm


StatementIndex Member Function

public int StatementIndex()

Definition
Line 36 of scmlg/Dfa.cm