~npalix/coccinelle/upstream

« back to all changes in this revision

Viewing changes to commons/ocollection/oassocbdb_string.mli

  • Committer: Nicolas Palix
  • Date: 2010-01-28 14:23:49 UTC
  • Revision ID: git-v1:70d17887795852eca805bfe27745b9810c0a39be
Remove trailing whitespace/tab

svn path=/coccinelle/; revision=8684

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
(* !!take care!!: this class does side effect, not a pure oassoc.
2
 
 * 
 
2
 *
3
3
 * Also can not put structure with ref or mutable field because when
4
4
 * you will modify those refs or fields, you will modify it in the memory,
5
 
 * not in the disk. The only way to modify on the disk is to call 
 
5
 * not in the disk. The only way to modify on the disk is to call
6
6
 * #add or #replace with what you modified. Oassocbdb has no way
7
7
 * to know that you modified it.
8
8
 *)
9
 
class ['b] oassoc_btree_string : 
10
 
  Bdb.db -> 
11
 
  string                     (* db name, for profiling *) -> 
 
9
class ['b] oassoc_btree_string :
 
10
  Bdb.db ->
 
11
  string                     (* db name, for profiling *) ->
12
12
  (unit -> Bdb.dbtxn option) (* transaction handler *) ->
13
13
object('o)
14
14
  inherit [string,'b] Oassoc.oassoc
32
32
 
33
33
end
34
34
 
35
 
val create_bdb: 
 
35
val create_bdb:
36
36
  string ->
37
37
  string ->
38
38
  Bdb.dbenv ->
39
39
  (unit -> Bdb.dbtxn option) ->
40
 
  int -> 
41
 
  Bdb.db * (string, 'a) Oassoc_buffer.oassoc_buffer 
 
40
  int ->
 
41
  Bdb.db * (string, 'a) Oassoc_buffer.oassoc_buffer