seams-core v2.15.0
libyodaLib, the C++ engine of d-SEAMS
Loading...
Searching...
No Matches
smooth::Topology Struct Reference

Candidate rings, shortcut paths and hexagon pairs of one graph. More...

#include <src/include/internal/smooth_cv.hpp>

Classes

struct  HexPair
 Two vertex-disjoint candidate hexagons a < b that may pass the HC basal test. More...

Public Member Functions

int ringCount () const
int ringSize (int k) const
int edgeOf (int i, int j) const
 Edge id of the pair (i, j), or -1.

Public Attributes

int nAtoms = 0
int maxRing = 0
std::vector< std::array< int, 2 > > edges
std::vector< int > adjOff
std::vector< int > adjAtom
std::vector< int > adjEdge
std::vector< int > ringOff {0}
std::vector< int > ringAtoms
std::vector< int > ringEdges
std::vector< int > pathOff {0}
std::vector< int > pathEdgeOff {0}
std::vector< int > pathEdges
std::vector< HexPair > hexPairs

Detailed Description

Candidate rings, shortcut paths and hexagon pairs of one graph.

Fixed between neighbour-list rebuilds. Edge e joins edges[e][0] < edges[e][1]. Ring k lists its members in ringAtoms[ringOff[k] .. ringOff[k + 1]], in cycle order from its lowest index toward the lesser of that member's ring neighbours, and the edge from member t to member t + 1 (cyclically) in ringEdges at the same offsets. The shortcut paths of ring k are paths pathOff[k] .. pathOff[k + 1]; path p is the edge list pathEdges[pathEdgeOff[p] .. pathEdgeOff[p + 1]].

Definition at line 144 of file smooth_cv.hpp.

Member Function Documentation

◆ edgeOf()

int smooth::Topology::edgeOf ( int i,
int j ) const
nodiscard

Edge id of the pair (i, j), or -1.

◆ ringCount()

int smooth::Topology::ringCount ( ) const
inlinenodiscard

Definition at line 168 of file smooth_cv.hpp.

168{ return static_cast<int>(ringOff.size()) - 1; }
std::vector< int > ringOff

◆ ringSize()

int smooth::Topology::ringSize ( int k) const
inlinenodiscard

Definition at line 169 of file smooth_cv.hpp.

169 {
170 return ringOff[static_cast<std::size_t>(k) + 1] - ringOff[static_cast<std::size_t>(k)];
171 }

Member Data Documentation

◆ adjAtom

std::vector<int> smooth::Topology::adjAtom

Definition at line 149 of file smooth_cv.hpp.

◆ adjEdge

std::vector<int> smooth::Topology::adjEdge

Definition at line 150 of file smooth_cv.hpp.

◆ adjOff

std::vector<int> smooth::Topology::adjOff

Definition at line 148 of file smooth_cv.hpp.

◆ edges

std::vector<std::array<int, 2> > smooth::Topology::edges

Definition at line 147 of file smooth_cv.hpp.

◆ hexPairs

std::vector<HexPair> smooth::Topology::hexPairs

Definition at line 166 of file smooth_cv.hpp.

◆ maxRing

int smooth::Topology::maxRing = 0

Definition at line 146 of file smooth_cv.hpp.

◆ nAtoms

int smooth::Topology::nAtoms = 0

Definition at line 145 of file smooth_cv.hpp.

◆ pathEdgeOff

std::vector<int> smooth::Topology::pathEdgeOff {0}

Definition at line 155 of file smooth_cv.hpp.

◆ pathEdges

std::vector<int> smooth::Topology::pathEdges

Definition at line 156 of file smooth_cv.hpp.

◆ pathOff

std::vector<int> smooth::Topology::pathOff {0}

Definition at line 154 of file smooth_cv.hpp.

◆ ringAtoms

std::vector<int> smooth::Topology::ringAtoms

Definition at line 152 of file smooth_cv.hpp.

◆ ringEdges

std::vector<int> smooth::Topology::ringEdges

Definition at line 153 of file smooth_cv.hpp.

◆ ringOff

std::vector<int> smooth::Topology::ringOff {0}

Definition at line 151 of file smooth_cv.hpp.


The documentation for this struct was generated from the following file: