|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functor that traverses the arcs of a graph and performs an operation. More...
#include <tpl_graph.H>
Public Member Functions | |
| Operate_On_Arcs (SA __sa=SA()) | |
Initialize the functor with the filter sa | |
| void | operator() (const GT &g, Operation op=Operation()) const |
| Call to `op on each arc. | |
| void | operator() (GT &g, Operation op=Operation()) const |
| void | operator() (const GT &g, typename GT::Node *p, Operation op=Operation()) const |
| Call to `op on each arc of a node. | |
| void | operator() (GT &g, typename GT::Node *p, Operation op=Operation()) const |
Private Attributes | |
| SA | sa |
Functor that traverses the arcs of a graph and performs an operation.
This functor has three template parameters:
GT: the graph typeOperation: operation functor to be performed on each arcSA: arc filter Definition at line 2579 of file tpl_graph.H.
|
inline |
Initialize the functor with the filter sa
Definition at line 2585 of file tpl_graph.H.
|
inline |
Call to `op on each arc.
| [in] | g | the graph |
| [in] | op | the operation |
Definition at line 2595 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), and Aleph::Operate_On_Arcs< GT, Operation, SA >::sa.
|
inline |
Call to `op on each arc of a node.
| [in] | g | the graph |
| [in] | p | node pointer |
| [in] | op | the operation |
Definition at line 2613 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
|
inline |
Definition at line 2601 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), and Aleph::Operate_On_Arcs< GT, Operation, SA >::sa.
|
inline |
Definition at line 2620 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
|
private |
Definition at line 2581 of file tpl_graph.H.
Referenced by Aleph::Operate_On_Arcs< GT, Operation, SA >::operator()(), and Aleph::Operate_On_Arcs< GT, Operation, SA >::operator()().