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
IdentityFunc.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 src/core/scoring/constraints/IdentityFunc.hh
11
/// @brief Definition for functions used in definition of constraints.
12
/// @author James Thompson
13
14
15
#include <
core/scoring/constraints/IdentityFunc.hh
>
16
#include <
core/types.hh
>
17
#include <utility/pointer/ReferenceCount.hh>
18
#include <sstream>
19
20
21
namespace
core {
22
namespace
scoring {
23
namespace
constraints {
24
25
Real
26
IdentityFunc::func
(
Real
const
x )
const
{
27
return
x;
28
}
29
30
Real
31
IdentityFunc::dfunc
(
Real
const
/*x*/
)
const
{
32
return
1;
33
}
34
35
void
36
IdentityFunc::read_data
( std::istream &
/*in*/
) {}
37
38
void
39
IdentityFunc::show_definition
( std::ostream & out )
const
{
40
out <<
"IDENTITY"
;
41
}
42
43
Size
44
IdentityFunc::show_violations
(
45
std::ostream & out,
46
Real
x,
47
Size
verbose_level,
48
Real
threshold
49
)
const
{
50
return
Func::show_violations
( out, x, verbose_level, threshold );
51
}
52
53
}
// namespace constraints
54
}
// namespace scoring
55
}
// namespace core
56
Generated on Sat Jun 1 2013 11:35:34 for Rosetta 3.5 by
1.8.4