aa
com.cliffc.aa.HM.HM9.Worklist Class Reference
Collaboration diagram for com.cliffc.aa.HM.HM9.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 269 of file HM9.java.

Member Function Documentation

◆ addAll()

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

Definition at line 278 of file HM9.java.

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

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

Referenced by com.cliffc.aa.HM.HM9.T2.add_deps_work_impl(), com.cliffc.aa.HM.HM9.T2.add_fld(), com.cliffc.aa.HM.HM9.Lambda.add_hm_work(), com.cliffc.aa.HM.HM9.Let.add_hm_work(), com.cliffc.aa.HM.HM9.Lambda.add_val_work(), com.cliffc.aa.HM.HM9.Let.add_val_work(), com.cliffc.aa.HM.HM9.Apply.add_val_work(), and com.cliffc.aa.HM.HM9.Apply.hm().

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

◆ clear()

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

Definition at line 279 of file HM9.java.

279  {
280  _cnt=0;
281  _ary.clear();
282  _work.clear();
283  }

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

◆ has()

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

Definition at line 277 of file HM9.java.

277 { return _work.contains(s); }

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

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

Here is the caller graph for this function:

◆ len()

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

Definition at line 273 of file HM9.java.

273 { return _ary.len(); }

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

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

Here is the caller graph for this function:

◆ pop()

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

Definition at line 275 of file HM9.java.

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

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

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

Here is the caller graph for this function:

◆ push()

◆ toString()

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

Definition at line 284 of file HM9.java.

284 { return _ary.toString(); }

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

Member Data Documentation

◆ _ary

◆ _cnt

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

◆ _work

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

The documentation for this class was generated from the following file:
com.cliffc.aa.HM.HM9.Worklist.push
void push(Syntax s)
Definition: HM9.java:274
com.cliffc.aa.HM.HM9.Worklist._ary
final Ary< Syntax > _ary
Definition: HM9.java:271
com.cliffc.aa.HM.HM9.Worklist._cnt
int _cnt
Definition: HM9.java:270
com.cliffc.aa.HM.HM9.Worklist._work
final HashSet< Syntax > _work
Definition: HM9.java:272