1 | /* |
---|
2 | Copyright (c) 2006-2018 Elmar Pruesse <elmar.pruesse@ucdenver.edu> |
---|
3 | |
---|
4 | This file is part of SINA. |
---|
5 | SINA is free software: you can redistribute it and/or modify it under |
---|
6 | the terms of the GNU General Public License as published by the Free |
---|
7 | Software Foundation, either version 3 of the License, or (at your |
---|
8 | option) any later version. |
---|
9 | |
---|
10 | SINA is distributed in the hope that it will be useful, but WITHOUT ANY |
---|
11 | WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
12 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
---|
13 | for more details. |
---|
14 | |
---|
15 | You should have received a copy of the GNU General Public License |
---|
16 | along with SINA. If not, see <http://www.gnu.org/licenses/>. |
---|
17 | |
---|
18 | Additional permission under GNU GPL version 3 section 7 |
---|
19 | |
---|
20 | If you modify SINA, or any covered work, by linking or combining it |
---|
21 | with components of ARB (or a modified version of that software), |
---|
22 | containing parts covered by the terms of the |
---|
23 | ARB-public-library-license, the licensors of SINA grant you additional |
---|
24 | permission to convey the resulting work. Corresponding Source for a |
---|
25 | non-source form of such a combination shall include the source code |
---|
26 | for the parts of ARB used as well as that of the covered work. |
---|
27 | */ |
---|
28 | |
---|
29 | #include "tray.h" |
---|
30 | #include <sstream> |
---|
31 | |
---|
32 | //#define DEBUG_TRAY |
---|
33 | #ifdef DEBUG_TRAY |
---|
34 | #define DBG(x) std::cerr << "TRAY (" << this << "): " << x << std::endl |
---|
35 | #else |
---|
36 | #define DBG(x) |
---|
37 | #endif |
---|
38 | |
---|
39 | |
---|
40 | namespace sina { |
---|
41 | |
---|
42 | tray::tray() { |
---|
43 | DBG("Construct"); |
---|
44 | } |
---|
45 | |
---|
46 | tray::tray(const tray& o) |
---|
47 | : seqno(o.seqno), |
---|
48 | input_sequence(o.input_sequence), |
---|
49 | aligned_sequence(o.aligned_sequence), |
---|
50 | alignment_reference(o.alignment_reference), |
---|
51 | search_result(o.search_result), |
---|
52 | astats(o.astats) |
---|
53 | { |
---|
54 | log.str(o.log.str()); |
---|
55 | DBG("Copy from " << &o); |
---|
56 | } |
---|
57 | |
---|
58 | tray& |
---|
59 | tray::operator=(const tray& o) { |
---|
60 | seqno=o.seqno; |
---|
61 | input_sequence=o.input_sequence; |
---|
62 | aligned_sequence=o.aligned_sequence; |
---|
63 | alignment_reference=o.alignment_reference; |
---|
64 | search_result=o.search_result; |
---|
65 | log.str(o.log.str()); |
---|
66 | astats=o.astats; |
---|
67 | |
---|
68 | DBG("Assign from " << &o); |
---|
69 | |
---|
70 | return *this; |
---|
71 | } |
---|
72 | |
---|
73 | tray::~tray() { |
---|
74 | DBG("Destruct"); |
---|
75 | } |
---|
76 | |
---|
77 | void |
---|
78 | tray::destroy() { |
---|
79 | delete input_sequence; |
---|
80 | delete aligned_sequence; |
---|
81 | delete alignment_reference; |
---|
82 | delete search_result; |
---|
83 | delete astats; |
---|
84 | |
---|
85 | DBG("Destroy"); |
---|
86 | } |
---|
87 | |
---|
88 | |
---|
89 | } // namespace sina; |
---|
90 | |
---|
91 | |
---|
92 | /* |
---|
93 | Local Variables: |
---|
94 | mode:c++ |
---|
95 | c-file-style:"stroustrup" |
---|
96 | c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . 0)) |
---|
97 | indent-tabs-mode:nil |
---|
98 | fill-column:99 |
---|
99 | End: |
---|
100 | */ |
---|
101 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : |
---|