void CSeq_interval::SetTruncatedStop(bool val, ESeqLocExtremes ext) { if (val != IsTruncatedStop(ext)) { if (val) { if (ext == eExtreme_Biological && x_IsMinusStrand()) { SetFuzz_from().SetLim(CInt_fuzz::eLim_tl); } else { SetFuzz_to().SetLim(CInt_fuzz::eLim_tr); } } else { if (ext == eExtreme_Biological && x_IsMinusStrand()) { ResetFuzz_from(); } else { ResetFuzz_to(); } } } _ASSERT(val == IsTruncatedStop(ext)); }
void CPacked_seqpnt::SetTruncatedStop(bool val, ESeqLocExtremes ext) { if (val == IsTruncatedStop(ext)) { return; } if (val) { CInt_fuzz::TLim lim = (ext == eExtreme_Biological && x_IsMinusStrand()) ? CInt_fuzz::eLim_tl : CInt_fuzz::eLim_tr; SetFuzz().SetLim(lim); } else { ResetFuzz(); } }