aa
com.cliffc.aa.HM.HM8.Worklist Class Reference
Collaboration diagram for com.cliffc.aa.HM.HM8.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 ()
 

Public Attributes

int _cnt
 

Private Attributes

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

Detailed Description

Definition at line 197 of file HM8.java.

Member Function Documentation

◆ addAll()

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

Definition at line 206 of file HM8.java.

206 { if( ss != null ) for( Syntax s : ss ) push(s); }

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

Referenced by com.cliffc.aa.HM.HM8.T2.add_deps_work_impl(), com.cliffc.aa.HM.HM8.T2.add_fld(), com.cliffc.aa.HM.HM8.Lambda.add_work(), com.cliffc.aa.HM.HM8.Let.add_work(), and com.cliffc.aa.HM.HM8.Apply.hm().

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

◆ has()

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

Definition at line 205 of file HM8.java.

205 { return _work.contains(s); }

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

Referenced by com.cliffc.aa.HM.HM8.Syntax.more_work_impl().

Here is the caller graph for this function:

◆ len()

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

Definition at line 201 of file HM8.java.

201 { return _ary.len(); }

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

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

Here is the caller graph for this function:

◆ pop()

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

Definition at line 203 of file HM8.java.

203 { Syntax s = _ary.pop();_cnt++; _work.remove(s); return s; }

References com.cliffc.aa.HM.HM8.Worklist._ary, com.cliffc.aa.HM.HM8.Worklist._cnt, and com.cliffc.aa.HM.HM8.Worklist._work.

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

Here is the caller graph for this function:

◆ push()

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

◆ toString()

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

Definition at line 207 of file HM8.java.

207 { return _ary.toString(); }

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

Member Data Documentation

◆ _ary

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

◆ _cnt

int com.cliffc.aa.HM.HM8.Worklist._cnt

Definition at line 198 of file HM8.java.

Referenced by com.cliffc.aa.HM.HM8.Worklist.pop().

◆ _work

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

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM8.Worklist._ary
final Ary< Syntax > _ary
Definition: HM8.java:199
com.cliffc.aa.HM.HM8.Worklist._work
final HashSet< Syntax > _work
Definition: HM8.java:200
com.cliffc.aa.HM.HM8.Worklist._cnt
int _cnt
Definition: HM8.java:198
com.cliffc.aa.HM.HM8.Worklist.push
void push(Syntax s)
Definition: HM8.java:202