Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AA.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 /// @author Phil Bradley
12 
13 
14 #ifndef INCLUDED_core_chemical_AA_hh
15 #define INCLUDED_core_chemical_AA_hh
16 
17 
18 // Unit headers
19 
20 // Project headers
21 
22 // Utility headers
23 
24 // C++ headers
25 // Commented by inclean daemon #include <string>
26 
27 // AUTO-REMOVED #include <basic/Tracer.fwd.hh>
28 
29 #include <ostream>
30 
31 
32 
33 namespace core {
34 namespace chemical {
35 
36 // temporary -- probably an enum?
37 ///////////////////////////////////////////////////////////////////////////
38 /// @brief enumeration for amino acids and nucleotides types with the total
39 /// number as num_aa_types
40 ///////////////////////////////////////////////////////////////////////////
41 // BUT DONT CODE TO THESE AS INTS!!!!!!
42 enum AA {
43  // protein 1-20
44  aa_ala = 1,
65  // dna 21-24
72  // rna 25-28
77  // virtual
79 
80  // unknown
82  num_aa_types = aa_unk //keep this guy last
83 };
84 
85 //////////////////////////////////////////////////////////
86 /// @brief give a AA string name and return its enum type
87 //////////////////////////////////////////////////////////
88 AA
89 aa_from_name( std::string const & name );
90 
91 ///////////////////////////////////////////////////////
92 /// @brief give a enum type and return the string name
93 ///////////////////////////////////////////////////////
95 name_from_aa( AA aa );
96 
97 ///////////////////////////////////////////////////////
98 /// @brief give a enum type and return the string name
99 ///////////////////////////////////////////////////////
100 char
102 
103 ///////////////////////////////////////////////////////////
104 /// @brief give a 1 letter code and return the string name
105 ///////////////////////////////////////////////////////////
106 AA
107 aa_from_oneletter_code( char onelettercode );
108 
109 bool
110 oneletter_code_specifies_aa( char onelettercode );
111 
112 /// @brief input operator for AA enum type
113 std::istream & operator >>( std::istream & is, AA & aa );
114 /// @brief output operator for AA enum type
115 std::ostream & operator <<( std::ostream & os, AA const & aa );
116 
117 
118 } // chemical
119 } // core
120 
121 #endif