Searches a cleavage specification in a list.
Searches for a cleavage specification having a name identical to argument
refList. If such cleavage specification is found, and if
other is non-0, the found cleavage specification's data are copied into
|refList ||list of cleavage specifications.|
|other ||cleavage specification to be updated with data in the found cleavage specification. Defaults to 0, in which case no update occurs.|
- the int index of the found cleavage specification or -1 if none is found or if
str is empty.
Definition at line 250 of file cleaveSpec.cpp.
References clone(), and massXpert::PolChemDefEntity::m_name.
CleaveSpec *cleaveSpec = 0;
for (int iter = 0; iter < refList.size(); ++iter)
cleaveSpec = refList.at(iter);
if(cleaveSpec->m_name == str)