Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DerivedSequenceMapping.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file
11 /// @brief
12 /// @author
13 
14 #ifndef INCLUDED_core_sequence_DerivedSequenceMapping_hh
15 #define INCLUDED_core_sequence_DerivedSequenceMapping_hh
16 
17 // Unit headers
20 
21 // Project headers
23 #include <core/types.hh>
24 
25 // Utility headers
26 #include <utility/pointer/ReferenceCount.hh>
27 // AUTO-REMOVED #include <utility/vector1.hh>
28 #include <utility/exit.hh>
29 
30 // C++ headers
31 // AUTO-REMOVED #include <iostream>
32 #include <string>
33 
34 namespace core {
35 namespace sequence {
36 
38 
39 public:
40 // constructors, destructors and assignment operator
41  /// @brief ctor
43  core::id::SequenceMapping(),
44  seq1_(""),
45  seq2_(""),
46  start_seq2_(0)
47  {}
48 
49  /// @brief ctor
51  core::id::SequenceMapping(s1,s2)
52  {}
53 
54  /// @brief dtor
56 
57  /// @brief copy constructor
59 
61  operator=( DerivedSequenceMapping const & src );
62 
63 public:
64 
66  return seq1_;
67  }
68 
70  return seq2_;
71  }
72 
73  std::string const & seq1() const {
74  return seq1_;
75  }
76 
77  std::string const & seq2() const {
78  return seq2_;
79  }
80 
81  Size const & start_seq2() const {
82  return start_seq2_;
83  }
84 
85  void seq1( std::string const & s ) {
86  seq1_ = s;
87  }
88 
89  void seq2( std::string const & s ) {
90  seq2_ = s;
91  }
92 
93  void start_seq2( Size s ) {
94  start_seq2_ = s;
95  }
96 
97 
98 private:
99  std::string seq1_; //target=query sequence ... might be empty if not available
100  std::string seq2_; //template sequence
101  Size start_seq2_; // which is the first seq_pos of seq2_
102 }; // class SequenceMapping
103 
104 } // sequence
105 } // core
106 
107 #endif