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
core
conformation
ResidueMatcher.cc
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 core/conformation/Residue.fwd.hh
11
/// @author Phil Bradley
12
13
14
// Project headers
15
#include <
core/conformation/ResidueMatcher.hh
>
16
#include <
core/conformation/Residue.hh
>
17
18
#include <utility/vector1.hh>
19
20
21
// Utility headers
22
23
// C++ headers
24
25
26
namespace
core {
27
namespace
conformation {
28
29
/// @details Auto-generated virtual destructor
30
ResidueMatcher::~ResidueMatcher
() {}
31
32
33
bool
34
WatsonCrickResidueMatcher::operator()
(
Residue
const
& rsd1,
Residue
const
& rsd2 )
const
35
{
36
using namespace
chemical;
37
switch
( rsd1.
aa
() ) {
38
case
na_thy
:
39
return
( rsd2.
aa
() ==
na_ade
);
40
case
na_ade
:
41
return
( rsd2.
aa
() ==
na_thy
);
42
case
na_cyt
:
43
return
( rsd2.
aa
() ==
na_gua
);
44
case
na_gua
:
45
return
( rsd2.
aa
() ==
na_cyt
);
46
default
:
47
return
false
;
48
}
49
}
50
51
bool
52
ExactResidueMatcher::operator()
(
Residue
const
& rsd1,
Residue
const
& rsd2 )
const
53
{
54
return
( rsd1.
name3
() == rsd2.
name3
() );
55
}
56
57
}
// namespace conformation
58
}
// namespace core
59
60
Generated on Sat Jun 1 2013 11:32:28 for Rosetta 3.5 by
1.8.4