Skip to content

Commit

Permalink
Default initialize all members of complexfiltercriteria
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Dec 4, 2024
1 parent 3310337 commit 0dd4b7f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/strucclustutils/filtermultimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ class ComplexFilterCriteria {
std::vector<double> tAlnChainTms;

ComplexFilterCriteria() {}
ComplexFilterCriteria(unsigned int targetComplexId, double qTm, double tTm, float tstring[3], float ustring[3][3]) :
targetComplexId(targetComplexId), qTotalAlnLen(0), tTotalAlnLen(0), interfaceLddt(0), qTm(qTm), tTm(tTm) {
std::copy(tstring, tstring + 3, t);
for (int i = 0; i < 3; i++) {
std::copy(ustring[i], ustring[i] + 3, u[i]);
}
}
ComplexFilterCriteria(
unsigned int targetComplexId, double qTm, double tTm, float tstring[3], float ustring[3][3]
) :
targetComplexId(targetComplexId), qTotalAlnLen(0), tTotalAlnLen(0), qCov(0), tCov(0), interfaceLddt(0), qTm(qTm), tTm(tTm), avgTm(0) {
std::copy(tstring, tstring + 3, t);
for (int i = 0; i < 3; i++) {
std::copy(ustring[i], ustring[i] + 3, u[i]);
}
}
~ComplexFilterCriteria() {
qAlnChainTms.clear();
tAlnChainTms.clear();
Expand Down

0 comments on commit 0dd4b7f

Please sign in to comment.