Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SquareWellFunc.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/SquareWellFunc.hh
11 /// @brief Definition for functions used in definition of constraints.
12 /// @author Rhiju Das
13 
14 #ifndef INCLUDED_core_scoring_constraints_SquareWellFunc_hh
15 #define INCLUDED_core_scoring_constraints_SquareWellFunc_hh
16 
18 
20 
21 #include <core/types.hh>
22 
23 #include <utility/pointer/ReferenceCount.hh>
24 
25 
26 // C++ Headers
27 
28 namespace core {
29 namespace scoring {
30 namespace constraints {
31 
32 class SquareWellFunc : public Func {
33 public:
34  SquareWellFunc( Real const x0_in, Real const well_depth_in ): x0_( x0_in ), well_depth_( well_depth_in ){}
35 
36  FuncOP
37  clone() const { return new SquareWellFunc( *this ); }
38 
39  Real func( Real const x ) const;
40  Real dfunc( Real const x ) const;
41 
42  void read_data( std::istream& in );
43 
44  void show_definition( std::ostream &out ) const;
45 
46  Real x0() const { return x0_; }
47  Real well_depth() const { return well_depth_; }
48  void x0( Real x ) { x0_ = x; }
50 
51  Size
52  show_violations( std::ostream& out, Real x, Size verbose_level, core::Real threshold = 1 ) const;
53 
54 private:
57 };
58 
59 
60 
61 } // constraints
62 } // scoring
63 } // core
64 
65 #endif