Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Contact.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 protocols/frag_picker/Contact.hh
11 /// @brief A contact.
12 /// @author David E. Kim (dekim@u.washington.edu)
13 
14 #ifndef INCLUDED_protocols_frag_picker_contact_hh
15 #define INCLUDED_protocols_frag_picker_contact_hh
16 
17 // unit headers
19 
20 // project headers
22 
23 // type headers
24 #include <core/types.hh>
25 
26 // utility headers
27 #include <utility/pointer/owning_ptr.hh>
28 #include <utility/pointer/ReferenceCount.hh>
29 
30 // C++ headers
31 #include <cstdlib>
32 #include <cmath>
33 #include <math.h>
34 #include <stdio.h>
35 #include <string>
36 
37 namespace protocols {
38 namespace frag_picker {
39 
40 using namespace core;
41 
43 public:
44 
45  Contact( Size i, Size j, Real dist_squared, ContactType type ) {
46  i_ = i;
47  j_ = j;
48  dist_squared_ = dist_squared;
49  type_ = type;
50  }
51 
52  ~Contact(){};
53 
54  Size & i() {
55  return i_;
56  }
57 
58  Size & j() {
59  return j_;
60  }
61 
63  return dist_squared_;
64  }
65 
66  Real dist() {
67  return std::sqrt(dist_squared_);
68  }
69 
71  return type_;
72  }
73 
75  return contact_name(type_);
76  }
77 
78 private:
83 };
84 
85 
86 } // namespace frag_picker
87 } // namespace protocols
88 
89 #endif // INCLUDED_protocols_frag_picker_contact_HH