Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CompositeSequence.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 CompositeSequence.hh
11 /// @brief class definition for a sequence profile that represents each
12 /// position in a sequence as a probability distribution over the allowed amino
13 /// acids at that position.
14 /// @author James Thompson
15 
16 #ifndef INCLUDED_core_sequence_CompositeSequence_hh
17 #define INCLUDED_core_sequence_CompositeSequence_hh
18 
20 
21 #include <core/types.hh>
23 // AUTO-REMOVED #include <core/sequence/SequenceProfile.hh>
24 
25 #include <utility/file/FileName.fwd.hh>
26 // AUTO-REMOVED #include <ObjexxFCL/string.functions.hh>
27 
28 #include <utility/vector1.hh>
29 
30 //Auto Headers
31 namespace core {
32 namespace sequence {
33 
34 class CompositeSequence : public Sequence {
36 
37 public:
38 
39  /// @brief ctors
41 
42  /// @brief copy ctor
44  : Sequence()
45  {
46  *this = src;
47  }
48 
49  core::Size n_seqs() const;
50 
52 
53  void add_sequence( SequenceOP seq );
54 
55  virtual Size length() const;
56 
57  virtual void delete_position( core::Size pos );
58 
59  virtual void insert_char( core::Size pos, char new_char );
60 
61  SequenceOP seq( core::Size idx ) const;
62 
63  /// @brief assignment operator.
65  if ( this == &rhs ) return *this;
66 
67  seqs_.clear();
68  for ( core::Size ii = 1; ii <= rhs.seqs().size(); ++ii ) {
69  //seqs_.push_back( rhs.seq(ii)->clone() );
70  add_sequence( rhs.seq(ii)->clone() );
71  }
72 
73  id ( rhs.id() );
74  start ( rhs.start() );
75  gap_char( rhs.gap_char() );
76  sequence( rhs.sequence() );
77  return *this;
78  }
79 
80  /// @brief dtor
81  virtual ~CompositeSequence();
82 
83  /// @brief Returns an owning pointer to a new CompositeSequence object,
84  /// with data that is a deep copy of the information in this object.
85  virtual SequenceOP clone() const;
86 
87  virtual std::string to_string() const;
88 
89  virtual std::string type() const;
90 
91 private:
93 }; // class CompositeSequence
94 
95 } // sequence
96 } // core
97 
98 #endif