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

#include <tpl_graph.H>

Public Member Functions

 Operate_On_Nodes (SN __sn=SN()) noexcept(std::is_nothrow_constructible< SN >::value)
 Initialize the functor with the filter sa
 
void operator() (const GT &g, Operation op=Operation()) noexcept(noexcept(op))
 
void operator() (GT &g, Operation op=Operation()) noexcept(noexcept(op))
 

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

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() 
)
inlinenoexcept

Call to operation on each node.

Parameters
[in]gthe graph
[in]opthe operation

◆ 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() 
)
inlinenoexcept

Call to operation on each node.

Parameters
[in]gthe graph
[in]opthe operation

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

Leandro Rabindranath León