26 #include <basic/Tracer.hh>
28 #include <utility/vector1.hh>
33 static basic::Tracer
TR(
"core.scoring.constraints.SiteConstraintResidues");
37 namespace constraints {
56 out <<
"SiteConstraintResidues is an AmbiguousConstraint containing the following " <<
member_constraints().size() <<
" constraints: " << std::endl;
61 out <<
" ...all member constraints of this SiteConstraintResidues shown." << std::endl;
71 TR.Debug <<
"read_site_cst" << std::endl;
79 data >> res1 >> name >> res2 >> res3 >> func_type;
80 TR.Info <<
"read: " << res1 <<
" "<< name <<
" constrain to residues " << res2 <<
":" << res3 <<
" func: " << func_type << std::endl;
82 aFunc->read_data( data );
84 if (
TR.Debug.visible() ) {
85 aFunc->show_definition(
TR.Debug );
TR.Debug<<std::endl;
87 setup_csts( res1, name, res2,res3, pose, aFunc );
91 while( data.good() && (data.get() !=
'\n') ) {}
92 if ( !data.good() ) data.setstate( std::ios_base::eofbit );
95 if (
TR.Debug.visible() ) {
96 aFunc->show_definition(
TR.Debug );
97 TR.Debug << std::endl;
113 for (
Size j = res2 ; j < res3 ; ++j ) {
115 runtime_assert( target_atom.valid() && atom2.valid() );