1
/* $Id: Memory.h,v 1.3 2003/04/24 23:52:36 terpstra Exp $
3
* Memory.h - Memory segment for inserts prior to commit
5
* Copyright (C) 2002 - Wesley W. Terpstra
9
* Authors: 'Wesley W. Terpstra' <wesley@terpstra.ca>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; version 2.1.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
39
typedef std::multiset<string> Data;
43
/** Insert a key into the memory.
45
void insert(const string& k)
50
/** Flush out memory after commit.
64
/** Summarize the size used.
66
int category(const Parameters& p) const;
68
/** Find the first key >= k.
71
auto_ptr<Source> openMemory(const string& k, bool forward);