Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AnnotatedSequence.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 src/core/sequence/AnnotatedSequence.hh
11 /// @brief
12 /// @author Oliver Lange
13 
14 #ifndef INCLUDED_core_sequence_AnnotatedSequence_hh
15 #define INCLUDED_core_sequence_AnnotatedSequence_hh
16 
17 #include <utility/vector1.hh>
18 
19 // C/C++ headers
20 #include <string>
21 #include <map>
22 
23 // Project headers
24 #include <core/types.hh>
25 
26 #include <core/chemical/AA.hh>
27 
28 
29 namespace core {
30 namespace sequence {
31 
33 public:
34 
37  AnnotatedSequence( AnnotatedSequence const& other );
38 
39  void operator=( std::string const& );
41 
42  //@brief sequence position is patched
43  bool is_patched( core::Size seqpos ) const;
44 
45  //@brief return the string within the [ ] or ""
46  std::string patch_str( core::Size seqpos ) const;
47 
48  char one_letter( core::Size seqpos ) const;
49 
50  core::chemical::AA aa( core::Size seqpos ) const;
51 
53 
54 private:
55 
56  void calculate_map() const;
57 
59 
61  mutable bool map_is_clean_;
62 };
63 
64 }
65 }
66 
67 #endif