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

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
 

Detailed Description

template<class GT, class Operation, class SA = Dft_Show_Arc<GT>>
class Aleph::Operate_On_Arcs< GT, Operation, SA >

Functor that traverses the arcs 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 arc
  3. SA: arc filter

Definition at line 2579 of file tpl_graph.H.

Constructor & Destructor Documentation

◆ Operate_On_Arcs()

template<class GT , class Operation , class SA = Dft_Show_Arc<GT>>
Aleph::Operate_On_Arcs< GT, Operation, SA >::Operate_On_Arcs ( SA  __sa = SA())
inline

Initialize the functor with the filter sa

Definition at line 2585 of file tpl_graph.H.

Member Function Documentation

◆ operator()() [1/4]

template<class GT , class Operation , class SA = Dft_Show_Arc<GT>>
void Aleph::Operate_On_Arcs< GT, Operation, SA >::operator() ( const GT g,
Operation  op = Operation() 
) const
inline

Call to `op on each arc.

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

◆ operator()() [2/4]

template<class GT , class Operation , class SA = Dft_Show_Arc<GT>>
void Aleph::Operate_On_Arcs< GT, Operation, SA >::operator() ( const GT g,
typename GT::Node p,
Operation  op = Operation() 
) const
inline

Call to `op on each arc of a node.

Parameters
[in]gthe graph
[in]pnode pointer
[in]opthe operation

Definition at line 2613 of file tpl_graph.H.

References Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().

◆ operator()() [3/4]

◆ operator()() [4/4]

template<class GT , class Operation , class SA = Dft_Show_Arc<GT>>
void Aleph::Operate_On_Arcs< GT, Operation, SA >::operator() ( GT g,
typename GT::Node p,
Operation  op = Operation() 
) const
inline

Member Data Documentation

◆ sa


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