Skip to content

Commit

Permalink
used clang-format to format the document
Browse files Browse the repository at this point in the history
Signed-off-by: Surajjalpun2002 <[email protected]>
  • Loading branch information
Surajjalpun2002 committed Oct 11, 2023
1 parent 9dee21f commit 3bc987b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions avogadro/core/angleiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ using namespace std;

AngleIterator::AngleIterator(const Molecule* mol)
: m_current(0, 0, 0), m_mol(mol)
{}
{
}

Angle AngleIterator::begin()
{
Expand Down Expand Up @@ -49,9 +50,9 @@ Angle AngleIterator::operator++()
return m_current;
}

} // end "c" loop
} // end "c" loop
valid = false; // we couldn't find a "c", so find a new "a"
} // end if()
} // end if()

// can we find a new edge?
for (const auto maybeA : graph.neighbors(b)) {
Expand All @@ -66,13 +67,13 @@ Angle AngleIterator::operator++()
// if we don't have a valid "a", move out to find a new "b"
} while (valid);

while(!valid && b + 1 < count) {
while (!valid && b + 1 < count) {
++b; // try going to the next atom

const auto neighbors = graph.neighbors(b);
if (neighbors.size() < 2)
continue;

a = neighbors[0];
c = neighbors[0]; // we'll move to the next one in the loop
valid = true;
Expand All @@ -83,4 +84,4 @@ Angle AngleIterator::operator++()
return make_tuple(MaxIndex, MaxIndex, MaxIndex);
} // end ++ operator

} // namespace Avogadro
} // namespace Avogadro::Core

0 comments on commit 3bc987b

Please sign in to comment.