Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
frag_picker
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
18
#include <
protocols/frag_picker/Contact.fwd.hh
>
19
20
// project headers
21
#include <
protocols/frag_picker/ContactTypes.hh
>
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
42
class
Contact
:
public
utility::pointer::ReferenceCount
{
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
62
Real
&
dist_squared
() {
63
return
dist_squared_;
64
}
65
66
Real
dist
() {
67
return
std::sqrt(dist_squared_);
68
}
69
70
ContactType
&
type
() {
71
return
type_;
72
}
73
74
std::string
type_name
() {
75
return
contact_name
(type_);
76
}
77
78
private
:
79
Size
i_
;
80
Size
j_
;
81
Real
dist_squared_
;
82
ContactType
type_
;
83
};
84
85
86
}
// namespace frag_picker
87
}
// namespace protocols
88
89
#endif // INCLUDED_protocols_frag_picker_contact_HH
Generated on Sat Jun 1 2013 11:52:25 for Rosetta 3.5 by
1.8.4