Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
IdentityFunc.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/IdentityFunc.hh
11 /// @brief Definition for functions used in definition of constraints.
12 /// @author James Thompson
13 
14 #ifndef INCLUDED_core_scoring_constraints_IdentityFunc_hh
15 #define INCLUDED_core_scoring_constraints_IdentityFunc_hh
16 
19 #include <core/types.hh>
20 
21 // C++ Headers
22 
23 namespace core {
24 namespace scoring {
25 namespace constraints {
26 
27 class IdentityFunc : public Func {
28 public:
30 
31  FuncOP
32  clone() const {
33  return new IdentityFunc( *this );
34  }
35 
36  Real func( Real const x ) const;
37  Real dfunc( Real const x ) const;
38 
39  void read_data( std::istream & in );
40 
41  void show_definition( std::ostream &out ) const;
42 
43  Size
45  std::ostream & out, Real x, Size verbose_level, core::Real threshold = 1
46  ) const;
47 
48 private:
51 };
52 
53 } // constraints
54 } // scoring
55 } // core
56 
57 #endif