NfaState Class

Definition

Line 27 of scmlg/Nfa.cm

Constructors & Destructor

public NfaState(int id_, int statementIndex_)

Member Functions

public bool Accept() const
public void AddEdge(const NfaEdge& edge)
public const List<NfaEdge>& Edges() const
public int Id() const
public List<NfaState*> Next(uchar c) const
public void SetAccept(bool accept_)
public void SetEdges(const List<NfaEdge>& edges_)
public void SetStatementIndex(int statementIndex_)
public int StatementIndex() const

Member Variables

private bool accept
private List<NfaEdge> edges
private int id
private int statementIndex

Constructor& Destructor Details

NfaState Constructor

public NfaState(int id_, int statementIndex_)

Definition
Line 29 of scmlg/Nfa.cm


Member Function Details

Accept Member Function

public bool Accept()

Definition
Line 45 of scmlg/Nfa.cm


AddEdge Member Function

public void AddEdge(const NfaEdge& edge)

Definition
Line 61 of scmlg/Nfa.cm


Edges Member Function

public const List<NfaEdge>& Edges()

Definition
Line 53 of scmlg/Nfa.cm


Id Member Function

public int Id()

Definition
Line 33 of scmlg/Nfa.cm


Next Member Function

public List<NfaState*> Next(uchar c)

Definition
Line 65 of scmlg/Nfa.cm


SetAccept Member Function

public void SetAccept(bool accept_)

Definition
Line 49 of scmlg/Nfa.cm


SetEdges Member Function

public void SetEdges(const List<NfaEdge>& edges_)

Definition
Line 57 of scmlg/Nfa.cm


SetStatementIndex Member Function

public void SetStatementIndex(int statementIndex_)

Definition
Line 41 of scmlg/Nfa.cm


StatementIndex Member Function

public int StatementIndex()

Definition
Line 37 of scmlg/Nfa.cm