Victor
 All Data Structures Functions Variables Friends Pages
Sec.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 #ifndef __Sec_H__
18 #define __Sec_H__
19 
20 #include <AlignmentData.h>
21 #include <Structure.h>
22 
23 namespace Victor { namespace Align2{
24 
31  class Sec : public Structure {
32  public:
33 
34  // CONSTRUCTORS:
35 
37  Sec(SubMatrix *subStr, AlignmentData *ad, double cSec);
38 
40  Sec(const Sec &orig);
41 
43  virtual ~Sec();
44 
45 
46  // OPERATORS:
47 
49  Sec& operator =(const Sec &orig);
50 
51 
52  // PREDICATES:
53 
55  virtual double scoringStr(int i, int j);
56 
57 
58  // MODIFIERS:
59 
61  virtual void copy(const Sec &orig);
62 
64  virtual Sec* newCopy();
65 
67  virtual void reverse();
68 
69 
70  protected:
71 
72 
73  private:
74 
75  // ATTRIBUTES:
76 
77  string sec1;
78  string sec2;
79  double cSec;
80 
81  };
82 
83 }} // namespace
84 
85 #endif
Sec(SubMatrix *subStr, AlignmentData *ad, double cSec)
Default constructor.
Definition: Sec.cc:36
virtual Sec * newCopy()
Construct a new "deep copy" of this object.
Definition: Sec.cc:89
Implement a standard substitution matrix.
Definition: SubMatrix.h:30
Sec & operator=(const Sec &orig)
Assignment operator.
Definition: Sec.cc:51
virtual double scoringStr(int i, int j)
Calculate structural scores to create matrix values.
Definition: Sec.cc:67
virtual ~Sec()
Destructor.
Definition: Sec.cc:44
virtual void reverse()
Reverse template secondary structure.
Definition: Sec.cc:97
Base class for printing alignments.
Definition: AlignmentData.h:35
Base class for structural scores.
Definition: Structure.h:32
Calculate structural scores with info derived from secondary structure.
Definition: Sec.h:31
SubMatrix * subStr
Structural substitution matrix.
Definition: Structure.h:82
virtual void copy(const Sec &orig)
Copy orig object to this object ("deep copy").
Definition: Sec.cc:78