Debian Codegraph @

src/capture.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2002-2003 Andi Peredri *
3 * [email protected] *
4 * Copyright (C) 2004-2005 Artur Wiebe *
5 * [email protected] *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21 ***************************************************************************/
22
23 #ifndef CAPTURE_H
24 #define CAPTURE_H
25
26 #include <QPair>
27 #include <QList>
28
29 class Capture {
30 public:
31 Capture(int, int, int);
32 ~Capture() { }
33
34 int captured;
35 int source;
36 int target;
37 };
38
39 class Captures {
40 public:
41 Captures() { }
42 Captures(int, int, int);
43 Captures(const Captures&);
44 Captures(const Captures*);
45 ~Captures() { }
46
47 void add(Captures&);
48 void add(Captures*);
49
50 bool isEmpty() const;
51 int size() const;
52
53 const Capture at(int) const;
54
55 private:
56 QList<Capture> m_captures;
57 };
58
59 #endif
60