virtual bool operator== (const SampleTreatment& rhs) const { if (type_ != rhs.getType()) { return false; } const Test* tmp = dynamic_cast<const Test*>(&rhs); return SampleTreatment::operator==(*tmp); }
bool Tagging::operator==(const SampleTreatment & rhs) const { if (type_ != rhs.getType()) return false; const Tagging * tmp = dynamic_cast<const Tagging *>(&rhs); return Modification::operator==(rhs) && mass_shift_ == tmp->mass_shift_ && variant_ == tmp->variant_; }
bool Modification::operator==(const SampleTreatment & rhs) const { if (type_ != rhs.getType()) return false; const Modification * tmp = dynamic_cast<const Modification *>(&rhs); return SampleTreatment::operator==(* tmp) && reagent_name_ == tmp->reagent_name_ && mass_ == tmp->mass_ && specificity_type_ == tmp->specificity_type_ && affected_amino_acids_ == tmp->affected_amino_acids_; }
bool Digestion::operator==(const SampleTreatment & rhs) const { if (type_ != rhs.getType()) return false; const Digestion * tmp = dynamic_cast<const Digestion *>(&rhs); return SampleTreatment::operator==(* tmp) && enzyme_ == tmp->enzyme_ && digestion_time_ == tmp->digestion_time_ && temperature_ == tmp->temperature_ && ph_ == tmp->ph_; }