Aleph-w  1.9
General library for algorithms and data structures
Aleph::Operate_On_Arcs< GT, Operation, SA > Class Template Reference

#include <tpl_graph.H>

Public Member Functions

 Operate_On_Arcs (SA __sa=SA()) noexcept(std::is_nothrow_constructible< SA >::value)
 Initialize the functor with the filter sa
 
void operator() (const GT &g, Operation op=Operation()) const noexcept(noexcept(op))
 
void operator() (GT &g, Operation op=Operation()) const noexcept(noexcept(op))
 
void operator() (const GT &g, typename GT::Node *p, Operation op=Operation()) const noexcept(noexcept(op))
 
void operator() (GT &g, typename GT::Node *p, Operation op=Operation()) const noexcept(noexcept(op))
 

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

Member Function Documentation

◆ operator()() [1/2]

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
inlinenoexcept

Call to `op on each arc

Parameters
[in]gthe graph
[in]opthe operation

◆ operator()() [2/2]

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
inlinenoexcept

Call to `op on each arc of a node

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

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

Leandro Rabindranath León