1#ifndef PSCF_EDGE_ITERATOR_H
2#define PSCF_EDGE_ITERATOR_H
11#include <pscf/chem/PolymerSpecies.h>
35 template <
typename WT>
59 void begin(
int sourceId,
int targetId);
105 int currentDirectionId_;
108 int currentVertexId_;
Edge iterator for graph associated with a polymer.
int currentEdgeId() const
Get index of the current edge.
int currentVertexId() const
Get index of the current vertex.
EdgeIterator< WT > & operator++()
Increment operator - move to next vertex.
int currentDirectionId() const
Get direction index for the path within the current edge.
bool isEnd() const
Return true iff currentId == targetId.
void begin(int sourceId, int targetId)
Initialize iterator.
EdgeIterator(PolymerSpecies< WT > const &polymer)
Constructor.
~EdgeIterator()
Destructor.
bool notEnd() const
Return true iff currentId != targetId.
Descriptor for a linear or acyclic branched block polymer.
PSCF package top-level namespace.