23 #include <utility/tag/Tag.hh>
24 #include <utility/vector1.hh>
25 #include <basic/Tracer.hh>
27 static basic::Tracer
TR(
"protocols.forge.remodel.remodelconstraintgenerator" );
40 : Mover(
"RemodelConstraintGenerator"),
49 seqmap_( rval.seqmap_ ),
71 TR <<
"Setting id for type " << this->
get_name() <<
" = " <<
id_ << std::endl;
79 if (
csts_.size() > 0 ){
88 if(
csts_.size() == 0 )
return;
104 if( remodel_csts.size() == 0 )
return;
109 utility_exit_with_message(
"Remodel constraints somehow got lost among the way");
116 csts_.push_back( cst );
122 for( core::scoring::constraints::ConstraintCOPs::const_iterator cst_it = csts.begin();
123 cst_it != csts.end(); ++cst_it ){
175 if (
id_ ==
"" )
return;
177 std::map< std::string, core::scoring::constraints::ConstraintCOPs >::iterator cst_it(
cst_map_.find(
id_ ) );
180 TR <<
"Overwriting constraints for " << this->
get_name() <<
" named " <<
id_ << std::endl;
196 cst_map_.insert( std::pair< std::string, core::scoring::constraints::ConstraintCOPs >(
id_,
csts_ ) );
203 utility_exit_with_message(
"ID is not set! The constraint set returned will be empty. Something is being mis-used." );
206 std::map< std::string, core::scoring::constraints::ConstraintCOPs >::const_iterator cst_it(
cst_map_.find(
id ) );
208 utility_exit_with_message(
"Tried to remove constraints that aren't stored for ID=" +
id );
210 return cst_it->second;