|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functor that traverses the nodes of a graph and performs an operation. More...
#include <tpl_graph.H>
Public Member Functions | |
| Operate_On_Nodes (SN __sn=SN()) | |
Initialize the functor with the filter sa | |
| void | operator() (const GT &g, Operation op=Operation()) |
Call to operation on each node. | |
| void | operator() (GT &g, Operation op=Operation()) |
Call to operation on each node. | |
Private Attributes | |
| SN | sn |
Functor that traverses the nodes of a graph and performs an operation.
This functor has three template parameters:
GT: the graph typeOperation: operation functor to be performed on each nodeSN: node filter Definition at line 2534 of file tpl_graph.H.
|
inline |
Initialize the functor with the filter sa
Definition at line 2540 of file tpl_graph.H.
|
inline |
Call to operation on each node.
| [in] | g | the graph |
| [in] | op | the operation |
Definition at line 2550 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), and Aleph::Operate_On_Nodes< GT, Operation, SN >::sn.
|
inline |
Call to operation on each node.
| [in] | g | the graph |
| [in] | op | the operation |
Definition at line 2561 of file tpl_graph.H.
References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), and Aleph::Operate_On_Nodes< GT, Operation, SN >::sn.
|
private |
Definition at line 2536 of file tpl_graph.H.
Referenced by Aleph::Operate_On_Nodes< GT, Operation, SN >::operator()(), and Aleph::Operate_On_Nodes< GT, Operation, SN >::operator()().