Victor
 All Data Structures Functions Variables Friends Pages
ScoringS2S.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 __ScoringS2S_H__
19 #define __ScoringS2S_H__
20 
21 #include <ScoringScheme.h>
22 
23 namespace Victor { namespace Align2{
24 
30  class ScoringS2S : public ScoringScheme {
31  public:
32 
33  // CONSTRUCTORS:
34 
37 
39  ScoringS2S(const ScoringS2S &orig);
40 
42  virtual ~ScoringS2S();
43 
44 
45  // OPERATORS:
46 
48  ScoringS2S& operator =(const ScoringS2S &orig);
49 
50 
51  // PREDICATES:
52 
54  virtual double scoring(int i, int j);
55 
56 
57  // MODIFIERS:
58 
60  virtual void copy(const ScoringS2S &orig);
61 
63  virtual ScoringS2S* newCopy();
64 
66  virtual void reverse();
67 
68 
69  protected:
70 
71 
72  private:
73 
74  // ATTRIBUTES:
75 
76  string seq1;
77  string seq2;
78  double cSeq;
79 
80  };
81 
82 }} // namespace
83 
84 #endif
ScoringS2S & operator=(const ScoringS2S &orig)
Assignment operator.
Definition: ScoringS2S.cc:53
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
virtual double scoring(int i, int j)
Calculate scores to create matrix values.
Definition: ScoringS2S.cc:69
Structure * str
Pointer to Structure.
Definition: ScoringScheme.h:80
Base class for printing alignments.
Definition: AlignmentData.h:35
SubMatrix * sub
Substitution matrix.
Definition: ScoringScheme.h:78
Base class for structural scores.
Definition: Structure.h:32
ScoringS2S(SubMatrix *sub, AlignmentData *ad, Structure *str, double cSeq)
Default constructor.
Definition: ScoringS2S.cc:34
AlignmentData * ad
Pointer to AlignmentData.
Definition: ScoringScheme.h:79
Calculate scores for sequence to sequence alignment.
Definition: ScoringS2S.h:30
virtual void copy(const ScoringS2S &orig)
Copy orig object to this object ("deep copy").
Definition: ScoringS2S.cc:85
Base class for scoring schemes.
Definition: ScoringScheme.h:34
virtual ScoringS2S * newCopy()
Construct a new "deep copy" of this object.
Definition: ScoringS2S.cc:93
virtual void reverse()
Reverse template sequence.
Definition: ScoringS2S.cc:101
virtual ~ScoringS2S()
Destructor.
Definition: ScoringS2S.cc:46