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
constraints
SquareWell2Func.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 src/core/scoring/constraints/SquareWell2Func.hh
11
/// @brief Definition for functions used in definition of constraints.
12
/// @author Rhiju Das
13
/// @author Jianqing Xu
14
15
#ifndef INCLUDED_core_scoring_constraints_SquareWell2Func_hh
16
#define INCLUDED_core_scoring_constraints_SquareWell2Func_hh
17
18
#include <
core/scoring/constraints/SquareWell2Func.fwd.hh
>
19
20
#include <
core/scoring/constraints/Func.hh
>
21
22
#include <
core/types.hh
>
23
24
#include <utility/pointer/ReferenceCount.hh>
25
26
27
// C++ Headers
28
29
namespace
core {
30
namespace
scoring {
31
namespace
constraints {
32
33
class
SquareWell2Func
:
public
Func
{
34
public
:
35
SquareWell2Func
(
Real
const
x0_in,
Real
const
x_range_in,
Real
const
well_depth_in ):
x0_
( x0_in ),
x_range_
(x_range_in),
well_depth_
( well_depth_in ){}
36
37
FuncOP
38
clone
()
const
{
return
new
SquareWell2Func
( *
this
); }
39
40
Real
func
(
Real
const
x )
const
;
41
Real
dfunc
(
Real
const
x )
const
;
42
43
void
read_data
( std::istream& in );
44
45
void
show_definition
( std::ostream &out )
const
;
46
47
Real
x0
()
const
{
return
x0_
; }
48
Real
x_range
()
const
{
return
x_range_
;}
49
Real
well_depth
()
const
{
return
well_depth_
; }
50
void
x0
(
Real
x ) {
x0_
= x; }
51
void
x_range
(
Real
x_range
) {
x_range_
=
x_range
; }
52
void
well_depth
(
Real
well_depth
){
well_depth_
=
well_depth
;}
53
54
Size
55
show_violations
( std::ostream& out,
Real
x,
Size
verbose_level,
core::Real
threshold = 1 )
const
;
56
57
private
:
58
Real
x0_
;
59
Real
x_range_
;
60
Real
well_depth_
;
61
};
62
63
64
65
}
// constraints
66
}
// scoring
67
}
// core
68
69
#endif
70
Generated on Sat Jun 1 2013 11:35:53 for Rosetta 3.5 by
1.8.4