Victor
 All Data Structures Functions Variables Friends Pages
Threading.h
1 /* This file is part of Victor.
2 
3  Victor is free software: you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation, either version 3 of the License, or
6  (at your option) any later version.
7 
8  Victor is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with Victor. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 
18 #ifndef __Threading_H__
19 #define __Threading_H__
20 
21 #include <AlignmentData.h>
22 #include <Structure.h>
23 #include <ThreadingInput.h>
24 
25 namespace Victor { namespace Align2{
26 
33  class Threading : public Structure {
34  public:
35 
36  // CONSTRUCTORS:
37 
39  Threading(AlignmentData *ad, ThreadingInput *thread, double cThr);
40 
42  Threading(const Threading &orig);
43 
45  virtual ~Threading();
46 
47 
48  // OPERATORS:
49 
51  Threading& operator =(const Threading &orig);
52 
53 
54  // PREDICATES:
55 
57  virtual double scoringStr(int i, int j);
58 
59 
60  // MODIFIERS:
61 
63  virtual void copy(const Threading &orig);
64 
66  virtual Threading* newCopy();
67 
68 
69  protected:
70 
71 
72  private:
73 
74  // ATTRIBUTES:
75 
76  string seq1;
77  ThreadingInput *thread;
78  double cThr;
79 
80  };
81 
82 }} // namespace
83 
84 #endif
Threading(AlignmentData *ad, ThreadingInput *thread, double cThr)
Default constructor.
Definition: Threading.cc:31
virtual ~Threading()
Destructor.
Definition: Threading.cc:39
Implement I/O objects for handling threading files.
Definition: ThreadingInput.h:32
virtual double scoringStr(int i, int j)
Calculate structural scores to create matrix values.
Definition: Threading.cc:66
virtual void copy(const Threading &orig)
Copy orig object to this object ("deep copy").
Definition: Threading.cc:88
Base class for printing alignments.
Definition: AlignmentData.h:35
virtual Threading * newCopy()
Construct a new "deep copy" of this object.
Definition: Threading.cc:96
Base class for structural scores.
Definition: Structure.h:32
Calculate structural scores with info derived from threading.
Definition: Threading.h:33
Threading & operator=(const Threading &orig)
Assignment operator.
Definition: Threading.cc:50