1#ifndef PSCF_VERTEX_ITERATOR_H
2#define PSCF_VERTEX_ITERATOR_H
11#include <pscf/chem/PolymerSpecies.h>
34 template <
typename WT>
55 void begin(
int sourceId,
int targetId);
Descriptor for a linear or acyclic branched block polymer.
Vertex iterator for graph associated with a polymer.
bool notEnd() const
Return true iff currentId != targetId.
int currentId() const
Get index of the current vertex.
VertexIterator & operator++()
Increment operator - move to next vertex.
bool isEnd() const
Return true iff currentId == targetId.
VertexIterator(PolymerSpecies< WT > const &polymer)
Constructor.
~VertexIterator()
Destructor.
void begin(int sourceId, int targetId)
Initialize iterator.
PSCF package top-level namespace.