/[fenfire]/fenfire/org/fenfire/swamp/CachedNodeFunction.java
ViewVC logotype

Diff of /fenfire/org/fenfire/swamp/CachedNodeFunction.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by tjl, Sun Apr 27 11:40:27 2003 UTC revision 1.6 by mudyc, Tue May 13 22:08:57 2003 UTC
# Line 78  public class CachedNodeFunction implemen Line 78  public class CachedNodeFunction implemen
78          return cac.value;          return cac.value;
79      }      }
80    
81    
82        // AAaarrgghh, tried to find a few hours to how to set nodes dirty
83        // mudyc, XXX
84        public void makeAllDirty(Object node) {
85            CacheEntry cac = (CacheEntry)cache.get(node);
86            if(cac == null) {
87                cac = new CacheEntry();
88                cac.node = node;
89                cache.put(node, cac);
90            }
91    
92            Iterator it = cache.entrySet().iterator();
93            while(it.hasNext()) {
94                Map.Entry entry = (Map.Entry) it.next();
95                Object o = cache.get(entry.getKey());
96                CacheEntry ce = (CacheEntry)o;
97                ce.value = DIRTY;
98                cache.put(ce.node, ce);
99            }
100        }
101  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26