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
scoring
hbonds
hbtrie
HBCPData.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 core/scoring/hbonds/hbtrie/HBCPData.hh
11
/// @brief This class enforces the sc/bb hbond exclusion rule for use in the trie
12
/// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13
14
#ifndef INCLUDED_core_scoring_hbonds_hbtrie_HBCPData_hh
15
#define INCLUDED_core_scoring_hbonds_hbtrie_HBCPData_hh
16
17
// Unit Headers
18
#include <
core/scoring/hbonds/hbtrie/HBCPData.fwd.hh
>
19
20
// Project Headers
21
// AUTO-REMOVED #include <core/types.hh>
22
23
// STL Headers
24
#include <iosfwd>
25
26
namespace
core {
27
namespace
scoring {
28
namespace
hbonds {
29
namespace
hbtrie {
30
31
class
HBCPData
32
{
33
public
:
34
HBCPData
();
35
36
bool
avoid_sc_hbonds
()
const
{
return
avoid_sc_hbonds_
; }
37
bool
is_sc
()
const
{
return
is_sc_
; }
38
39
void
avoid_sc_hbonds
(
bool
setting ) {
avoid_sc_hbonds_
= setting; }
40
void
is_sc
(
bool
setting ) {
is_sc_
= setting; }
41
42
inline
43
bool
operator <
(
HBCPData
const
& other )
const
44
{
45
return
( (
avoid_sc_hbonds_
< other.
avoid_sc_hbonds_
) ||
46
((
avoid_sc_hbonds_
== other.
avoid_sc_hbonds_
) && (
is_sc_
< other.
is_sc_
)) );
47
}
48
49
inline
50
bool
operator ==
(
HBCPData
const
& other )
const
51
{
52
return
avoid_sc_hbonds_
== other.
avoid_sc_hbonds_
&&
is_sc_
== other.
is_sc_
;
53
}
54
55
void
print
( std::ostream & os )
const
;
56
57
//void
58
//set_count_pair_data_to_use( Size connection_id ) const;
59
60
61
private
:
62
bool
avoid_sc_hbonds_
;
63
bool
is_sc_
;
64
65
66
};
67
68
std::ostream &
operator <<
( std::ostream & os,
HBCPData
const
& cpdat );
69
70
}
// namespace hbtrie
71
}
// namespace hbonds
72
}
// namespace scoring
73
}
// namespace core
74
75
#endif
Generated on Sat Jun 1 2013 11:37:21 for Rosetta 3.5 by
1.8.4