Logo Search packages:      
Sourcecode: massxpert version File versions

massXpert::CleaveSpec::CleaveSpec ( const CleaveSpec other  ) 

Constructs a copy of other.

Parameters:
other cleavage specification to be used as a mold.

Definition at line 65 of file cleaveSpec.cpp.

References m_motifList, and m_ruleList.

    : PolChemDefEntity(other), m_pattern(other.m_pattern)
  {
    for (int iter = 0 ; iter < other.m_motifList.size(); ++iter)
      {
      CleaveMotif *cleaveMotif = 
        new CleaveMotif(*other.m_motifList.at(iter));
      
      m_motifList.append(cleaveMotif);
      }
  
    for (int iter = 0 ; iter < other.m_ruleList.size(); ++iter)
      {
      CleaveRule *cleaveRule = 
        new CleaveRule(*other.m_ruleList.at(iter));
      
      m_ruleList.append(cleaveRule);
      }
  }


Generated by  Doxygen 1.6.0   Back to index