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

Public Member Functions

void addAll (Ary<? extends Syntax > ss)
 
void clear ()
 
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 288 of file HM.java.

Member Function Documentation

◆ addAll()

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

Definition at line 297 of file HM.java.

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

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

Referenced by com.cliffc.aa.HM.HM.T2._union(), com.cliffc.aa.HM.HM.T2.add_deps_work_impl(), com.cliffc.aa.HM.HM.T2.add_fld(), com.cliffc.aa.HM.HM.Lambda.add_hm_work(), com.cliffc.aa.HM.HM.Let.add_hm_work(), com.cliffc.aa.HM.HM.Lambda.add_val_work(), com.cliffc.aa.HM.HM.Let.add_val_work(), com.cliffc.aa.HM.HM.Apply.add_val_work(), and com.cliffc.aa.HM.HM.Root.val().

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

◆ clear()

void com.cliffc.aa.HM.HM.Worklist.clear ( )

Definition at line 298 of file HM.java.

298  {
299  _cnt=0;
300  _ary.clear();
301  _work.clear();
302  }

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

◆ has()

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

Definition at line 296 of file HM.java.

296 { return _work.contains(s); }

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

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

Here is the caller graph for this function:

◆ len()

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

Definition at line 292 of file HM.java.

292 { return _ary.len(); }

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

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

Here is the caller graph for this function:

◆ pop()

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

Definition at line 294 of file HM.java.

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

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

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

Here is the caller graph for this function:

◆ push()

◆ toString()

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

Definition at line 303 of file HM.java.

303 { return _ary.toString(); }

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

Member Data Documentation

◆ _ary

◆ _cnt

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

◆ _work

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

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM.Worklist._ary
final Ary< Syntax > _ary
Definition: HM.java:290
com.cliffc.aa.HM.HM.Worklist.push
void push(Syntax s)
Definition: HM.java:293
com.cliffc.aa.HM.HM.Worklist._cnt
int _cnt
Definition: HM.java:289
com.cliffc.aa.HM.HM.Worklist._work
final HashSet< Syntax > _work
Definition: HM.java:291