indexing description: "Temporary comment server for a class indexed by class id."; date: "$Date$"; revision: "$Revision$" class TMP_CLASS_COMMENTS_SERVER inherit COMPILER_SERVER [CLASS_COMMENTS] export {TMP_CLASS_COMMENTS_SERVER} all; {ANY} put, flush, start, after, forth, item_for_iteration, key_for_iteration, clear_all, current_file_id, set_current_file_id, remove, has, off redefine put end create make feature -- Element change put (t: CLASS_COMMENTS) is -- Put object `t' in server. do debug ("SERVER") io.put_string ("Putting element of id: "); io.put_integer (t.class_id); io.put_string (" into"); io.put_string (generator); io.put_new_line; end; -- Write item to disk right away. write (t); end; feature -- Access id (t: CLASS_COMMENTS): INTEGER is -- Id associated with `t' do Result := t.class_id end feature {NONE} -- Implementation Cache: CACHE [CLASS_COMMENTS] is -- No caching machanism -- (Returns void) do end Delayed: SEARCH_TABLE [INTEGER] is -- Cache for delayed items once create Result.make ((3 * Cache.cache_size) // 2) end Size_limit: INTEGER is 200 -- Size of the TMP_CLASS_COMMENTS_SERVER file (200 Ko) Chunk: INTEGER is 500 -- Size of a HASH_TABLE block end -- class TMP_CLASS_COMMENTS_SERVER