1
/* $Id: View.h,v 1.5 2003/05/26 15:41:29 terpstra Exp $
3
* View.h - Snapshot of commit state
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
class View : public Reader
44
bool operator() (const File& x, const File& y) const
45
{ return x.category < y.category; }
48
typedef std::multiset<File, FileOrder> Files;
51
View(const Parameters& p) : params(p) { }
53
/** Collection of all files open - in INcreasing size.
57
int rawseek(Merger* out, const string& k, bool forward);
59
auto_ptr<Walker> seek(const string& k, Direction dir);
60
auto_ptr<Walker> seek(const string& pfx, const string& k, Direction dir);