14 #ifndef INCLUDED_core_scoring_PeptideBondedEnergyContainer_hh
15 #define INCLUDED_core_scoring_PeptideBondedEnergyContainer_hh
25 #include <utility/pointer/ReferenceCount.hh>
27 #include <utility/vector1.hh>
54 assert( dynamic_cast< PeptideBondedNeighborIterator const * >( &src ) );
77 return !( *
this == other );
100 (*tables_)[ std::min(
pos_,
base_) ][i] = energy;
115 (*computed_)[ std::min(
pos_,
base_) ] =
true;
119 (*computed_)[ std::min(
pos_,
base_) ] =
false;
157 assert( dynamic_cast< PeptideBondedNeighborConstIterator const * >( &src ) );
177 return !( *
this == other );
235 int nscoretypes = score_type_in.size();
241 return (
size_ == 0 );
263 int beginat = std::min( resid-1, (
int)
size_+1 );
264 if (resid==1) beginat = 2;
265 if (resid>(
int)
size_) beginat = 1;
272 int endat = std::min( resid+2, (
int)
size_+1 );
273 if (resid>(
int)
size_) endat = 1;
280 int beginat = std::min( resid+1, (
int)
size_+1 );
281 if (resid>(
int)
size_) beginat = 1;
295 int beginat = std::min( resid-1, (
int)
size_+1 );
296 if (resid==1) beginat = 2;
297 if (resid>(
int)
size_) beginat = 1;
304 int endat = std::min( resid+2, (
int)
size_+1 );
305 if (resid>(
int)
size_) endat = 1;
313 int beginat = std::min( resid+1, (
int)
size_+1 );
314 if (resid>(
int)
size_) beginat = 1;