DGtal
1.5.beta
|
Aim: Transforms a graph visitor into a single pass input range. More...
#include <DGtal/graph/GraphVisitorRange.h>
Data Structures | |
struct | GenericConstIterator |
struct | NodeAccessor |
struct | VertexAccessor |
Public Types | |
typedef TGraphVisitor | GraphVisitor |
typedef GraphVisitor::Graph | Graph |
typedef GraphVisitor::Vertex | Vertex |
typedef GraphVisitor::Node | Node |
typedef GraphVisitor::Size | Size |
typedef GraphVisitor::Data | Data |
typedef GenericConstIterator< VertexAccessor > | VertexConstIterator |
typedef GenericConstIterator< NodeAccessor > | NodeConstIterator |
typedef VertexConstIterator | ConstIterator |
typedef ConstIterator | const_iterator |
Public Member Functions | |
~GraphVisitorRange () | |
GraphVisitorRange (GraphVisitor *visitorPtr) | |
ConstIterator | begin () const |
ConstIterator | end () const |
NodeConstIterator | beginNode () const |
NodeConstIterator | endNode () const |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
Protected Member Functions | |
GraphVisitorRange () | |
Private Member Functions | |
GraphVisitorRange (const GraphVisitorRange &other) | |
GraphVisitorRange & | operator= (const GraphVisitorRange &other) |
Private Attributes | |
CountedPtr< GraphVisitor > | myVisitor |
A smart pointer on a graph visitor. More... | |
Aim: Transforms a graph visitor into a single pass input range.
Description of template class 'GraphVisitorRange'
Definition at line 71 of file GraphVisitorRange.h.
typedef ConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::const_iterator |
Definition at line 211 of file GraphVisitorRange.h.
typedef VertexConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::ConstIterator |
Definition at line 210 of file GraphVisitorRange.h.
typedef GraphVisitor::Data DGtal::GraphVisitorRange< TGraphVisitor >::Data |
Definition at line 79 of file GraphVisitorRange.h.
typedef GraphVisitor::Graph DGtal::GraphVisitorRange< TGraphVisitor >::Graph |
Definition at line 75 of file GraphVisitorRange.h.
typedef TGraphVisitor DGtal::GraphVisitorRange< TGraphVisitor >::GraphVisitor |
Definition at line 74 of file GraphVisitorRange.h.
typedef GraphVisitor::Node DGtal::GraphVisitorRange< TGraphVisitor >::Node |
Definition at line 77 of file GraphVisitorRange.h.
typedef GenericConstIterator<NodeAccessor> DGtal::GraphVisitorRange< TGraphVisitor >::NodeConstIterator |
const iterator on pair (Vertex,distance) for visiting a graph by following a breadth first traversal.
Definition at line 208 of file GraphVisitorRange.h.
typedef GraphVisitor::Size DGtal::GraphVisitorRange< TGraphVisitor >::Size |
Definition at line 78 of file GraphVisitorRange.h.
typedef GraphVisitor::Vertex DGtal::GraphVisitorRange< TGraphVisitor >::Vertex |
Definition at line 76 of file GraphVisitorRange.h.
typedef GenericConstIterator<VertexAccessor> DGtal::GraphVisitorRange< TGraphVisitor >::VertexConstIterator |
const iterator on Vertex for visiting a graph by following a breadth first traversal.
Definition at line 205 of file GraphVisitorRange.h.
DGtal::GraphVisitorRange< TGraphVisitor >::~GraphVisitorRange | ( | ) |
Destructor.
DGtal::GraphVisitorRange< TGraphVisitor >::GraphVisitorRange | ( | GraphVisitor * | visitorPtr | ) |
Constructor from dynamically allocated visitor. The visitor is acquired by this object.
visitorPtr | a pointer to a dynamically allocated visitor, which is acquired by this object. This visitor defines the starting point for the traversal. It must be valid (!= 0). |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
ConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::begin | ( | ) | const |
The value of the iterator has type Vertex.
NB: if you have already called begin() or beginNode(), it will raise an assertion.
NodeConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::beginNode | ( | ) | const |
The value of the iterator has type Node, i.e. std::pair<Vertex,Data>.
NB: if you have already called begin() or beginNode(), it will raise an assertion.
ConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::end | ( | ) | const |
The value of the iterator has type Vertex.
NodeConstIterator DGtal::GraphVisitorRange< TGraphVisitor >::endNode | ( | ) | const |
The value of the iterator has type Node, i.e. std::pair<Vertex,Data>.
bool DGtal::GraphVisitorRange< TGraphVisitor >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
other | the object to copy. |
void DGtal::GraphVisitorRange< TGraphVisitor >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
private |
A smart pointer on a graph visitor.
Definition at line 280 of file GraphVisitorRange.h.