Chordless cycles of one length.
More...
#include <include/seams.hpp>
|
| std::size_t | count () const |
| | Number of cycles.
|
| std::vector< int > | cycle (std::size_t index) const |
| | Atom indices of one cycle.
|
Chordless cycles of one length.
atoms holds count() rows of size atom indices, in the order seams_rings_chordless writes them. per_atom is the number of cycles through each atom.
Definition at line 616 of file seams.hpp.
◆ count()
| std::size_t seams::ChordlessCycles::count |
( |
| ) |
const |
|
inlinenodiscard |
Number of cycles.
Definition at line 622 of file seams.hpp.
622 {
623 return size > 0 ?
atoms.size() /
static_cast<std::size_t
>(
size) : 0;
624 }
std::vector< int > atoms
count() rows of size indices.
◆ cycle()
| std::vector< int > seams::ChordlessCycles::cycle |
( |
std::size_t | index | ) |
const |
|
inlinenodiscard |
Atom indices of one cycle.
Definition at line 626 of file seams.hpp.
626 {
627 const auto first =
628 atoms.begin() +
static_cast<std::ptrdiff_t
>(index *
static_cast<std::size_t
>(
size));
629 return std::vector<int>(first, first +
size);
630 }
◆ atoms
| std::vector<int> seams::ChordlessCycles::atoms |
◆ per_atom
| std::vector<int> seams::ChordlessCycles::per_atom |
Cycles through each atom.
Definition at line 619 of file seams.hpp.
◆ size
| int seams::ChordlessCycles::size = 0 |
The documentation for this struct was generated from the following file: