17 #include <utility/pointer/ReferenceCount.hh>
23 #include <utility/serialization/serialization.hh>
26 #include <cereal/types/base_class.hpp>
27 #include <cereal/types/polymorphic.hpp>
28 #endif // SERIALIZATION
83 template<
class Archive >
85 core::scoring::func::IdentityFunc::save( Archive & arc )
const {
86 arc( cereal::base_class< Func >(
this ) );
90 template<
class Archive >
92 core::scoring::func::IdentityFunc::load( Archive & arc ) {
93 arc( cereal::base_class< Func >(
this ) );
99 CEREAL_REGISTER_DYNAMIC_INIT( core_scoring_func_IdentityFunc )
100 #endif // SERIALIZATION
virtual bool same_type_as_me(Func const &other) const =0
Does the input Func, "other", have the same type as me? Necessary for the equality operator to functi...
virtual bool operator==(Func const &other) const
Equality operator. Looks for strict equality. Floating-point comparison is the rule rather than the e...
Real dfunc(Real const x) const
Returns a value representing the derivative of this function evaluated at a given point...
virtual bool same_type_as_me(Func const &other) const
Does the input Func, "other", have the same type as me? Necessary for the equality operator to functi...
Definition for functions used in definition of constraints.
void show_definition(std::ostream &out) const
shows the definition of this function, usually the string type of function and the parameters passed ...
Func is an abstract base class representing a function used to define constraints, in which func(r) gives the constraint score for the given value r.
Size show_violations(std::ostream &out, Real x, Size verbose_level, core::Real threshold=1) const
show some sort of stringified representation of the violations for this constraint.
Real func(Real const x) const
Returns a value representing this function evaluated at a given point.
rosetta project type declarations
virtual Size show_violations(std::ostream &out, Real r, Size verbose_level, Real threshold=1) const
show some sort of stringified representation of the violations for this constraint.
void read_data(std::istream &in)
initialize this Func from the given std::istream.