All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
Graph::Arc Class Reference

Detailed Description

This class identifies a directed arc of the graph. It also serves as a base class of the arc iterators, thus they will convert to this type.

#include <lemon/concepts/graph.h>

+ Inheritance diagram for Graph::Arc:

Public Member Functions

 Arc ()
 Default constructor. More...
 
 Arc (const Arc &)
 Copy constructor. More...
 
 Arc (Invalid)
 Invalid constructor & conversion. More...
 
bool operator== (Arc) const
 Equality operator. More...
 
bool operator!= (Arc) const
 Inequality operator. More...
 
bool operator< (Arc) const
 Artificial ordering operator. More...
 
 operator Edge () const
 Converison to Edge. More...
 

Constructor & Destructor Documentation

Arc ( )
inline

Default constructor.

Warning
It sets the object to an undefined value.
Arc ( const Arc )
inline

Copy constructor.

Arc ( Invalid  )
inline

Initializes the object to be invalid.

See Also
Invalid for more details.

Member Function Documentation

bool operator== ( Arc  ) const
inline

Equality operator.

Two iterators are equal if and only if they point to the same object or both are INVALID.

bool operator!= ( Arc  ) const
inline

Inequality operator.

bool operator< ( Arc  ) const
inline

Artificial ordering operator.

Note
This operator only has to define some strict ordering of the arcs; this order has nothing to do with the iteration ordering of the arcs.
operator Edge ( ) const
inline

Converison to Edge.