aa
com.cliffc.aa.HM.HM3.Worklist Class Reference
Collaboration diagram for com.cliffc.aa.HM.HM3.Worklist:
[legend]

Public Member Functions

void addAll (Ary<? extends Syntax > ss)
 
boolean has (Syntax s)
 
int len ()
 
Syntax pop ()
 
void push (Syntax s)
 
String toString ()
 

Private Attributes

final Ary< Syntax_ary = new Ary<>(Syntax.class)
 
final HashSet< Syntax_work = new HashSet<>()
 

Detailed Description

Definition at line 103 of file HM3.java.

Member Function Documentation

◆ addAll()

void com.cliffc.aa.HM.HM3.Worklist.addAll ( Ary<? extends Syntax ss)

Definition at line 110 of file HM3.java.

110 { for( Syntax s : ss ) push(s); }

References com.cliffc.aa.HM.HM3.Worklist.push().

Here is the call graph for this function:

◆ has()

boolean com.cliffc.aa.HM.HM3.Worklist.has ( Syntax  s)

Definition at line 109 of file HM3.java.

109 { return _work.contains(s); }

References com.cliffc.aa.HM.HM3.Worklist._work.

Referenced by com.cliffc.aa.HM.HM3.Syntax.check_progress().

Here is the caller graph for this function:

◆ len()

int com.cliffc.aa.HM.HM3.Worklist.len ( )

Definition at line 106 of file HM3.java.

106 { return _ary.len(); }

References com.cliffc.aa.HM.HM3.Worklist._ary.

Referenced by com.cliffc.aa.HM.HM3.hm().

Here is the caller graph for this function:

◆ pop()

Syntax com.cliffc.aa.HM.HM3.Worklist.pop ( )

Definition at line 108 of file HM3.java.

108 { Syntax s = _ary.pop(); _work.remove(s); return s; }

References com.cliffc.aa.HM.HM3.Worklist._ary, and com.cliffc.aa.HM.HM3.Worklist._work.

Referenced by com.cliffc.aa.HM.HM3.hm().

Here is the caller graph for this function:

◆ push()

void com.cliffc.aa.HM.HM3.Worklist.push ( Syntax  s)

Definition at line 107 of file HM3.java.

107 { if( !_work.contains(s) ) _work.add(_ary.push(s)); }

References com.cliffc.aa.HM.HM3.Worklist._ary, and com.cliffc.aa.HM.HM3.Worklist._work.

Referenced by com.cliffc.aa.HM.HM3.Syntax.add_work(), and com.cliffc.aa.HM.HM3.Worklist.addAll().

Here is the caller graph for this function:

◆ toString()

String com.cliffc.aa.HM.HM3.Worklist.toString ( )

Definition at line 111 of file HM3.java.

111 { return _ary.toString(); }

References com.cliffc.aa.HM.HM3.Worklist._ary.

Member Data Documentation

◆ _ary

final Ary<Syntax> com.cliffc.aa.HM.HM3.Worklist._ary = new Ary<>(Syntax.class)
private

◆ _work

final HashSet<Syntax> com.cliffc.aa.HM.HM3.Worklist._work = new HashSet<>()
private

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM3.Worklist._ary
final Ary< Syntax > _ary
Definition: HM3.java:104
com.cliffc.aa.HM.HM3.Worklist._work
final HashSet< Syntax > _work
Definition: HM3.java:105
com.cliffc.aa.HM.HM3.Worklist.push
void push(Syntax s)
Definition: HM3.java:107