Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Operate_On_Nodes< GT, Operation, SN > Class Template Reference

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
 

Detailed Description

template<class GT, class Operation, class SN = Dft_Show_Node<GT>>
class Aleph::Operate_On_Nodes< GT, Operation, SN >

Functor that traverses the nodes of a graph and performs an operation.

This functor has three template parameters:

  1. GT: the graph type
  2. Operation: operation functor to be performed on each node
  3. SN: node filter

Definition at line 2534 of file tpl_graph.H.

Constructor & Destructor Documentation

◆ Operate_On_Nodes()

template<class GT , class Operation , class SN = Dft_Show_Node<GT>>
Aleph::Operate_On_Nodes< GT, Operation, SN >::Operate_On_Nodes ( SN  __sn = SN())
inline

Initialize the functor with the filter sa

Definition at line 2540 of file tpl_graph.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT , class Operation , class SN = Dft_Show_Node<GT>>
void Aleph::Operate_On_Nodes< GT, Operation, SN >::operator() ( const GT g,
Operation  op = Operation() 
)
inline

Call to operation on each node.

Parameters
[in]gthe graph
[in]opthe 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.

◆ operator()() [2/2]

template<class GT , class Operation , class SN = Dft_Show_Node<GT>>
void Aleph::Operate_On_Nodes< GT, Operation, SN >::operator() ( GT g,
Operation  op = Operation() 
)
inline

Call to operation on each node.

Parameters
[in]gthe graph
[in]opthe 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.

Member Data Documentation

◆ sn


The documentation for this class was generated from the following file: