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

Filtered copy of graphs. More...

#include <tpl_graph.H>

Public Member Functions

 Copy_Graph (SA __sa=SA(), SN __sn=SN())
 Constructor.
 
void operator() (GT &gtgt, GT &gsrc, const bool cookie_map=true)
 Perform the copy from gsrc to gtgt.
 

Private Member Functions

void copy (GT &gtgt, const GT &gsrc, const bool cookie_map)
 

Private Attributes

SN sn
 
SA sa
 

Detailed Description

template<class GT, class SN = Dft_Show_Node<GT>, class SA = Dft_Show_Arc<GT>>
class Aleph::Copy_Graph< GT, SN, SA >

Filtered copy of graphs.

This functor copies a graph according to filtering criterias for its nodes and arcs

The template parameters are:

  • GT: the graph type
  • SN: node filter
  • SA: arc filter

Definition at line 3715 of file tpl_graph.H.

Constructor & Destructor Documentation

◆ Copy_Graph()

template<class GT , class SN = Dft_Show_Node<GT>, class SA = Dft_Show_Arc<GT>>
Aleph::Copy_Graph< GT, SN, SA >::Copy_Graph ( SA  __sa = SA(),
SN  __sn = SN() 
)
inline

Constructor.

Parameters
[in]__saarc filter
[in]__snnode filter

Definition at line 3726 of file tpl_graph.H.

Member Function Documentation

◆ copy()

◆ operator()()

template<class GT , class SN = Dft_Show_Node<GT>, class SA = Dft_Show_Arc<GT>>
void Aleph::Copy_Graph< GT, SN, SA >::operator() ( GT gtgt,
GT gsrc,
const bool  cookie_map = true 
)
inline

Perform the copy from gsrc to gtgt.

Parameters
[out]gtgttarget graph
[in]gsrcsource graph
[in]cookie_mapif true ==> the nodes and arcs of both graphs are mapped through their cookies

Definition at line 3785 of file tpl_graph.H.

References Aleph::Copy_Graph< GT, SN, SA >::copy(), and Aleph::maps().

Member Data Documentation

◆ sa

template<class GT , class SN = Dft_Show_Node<GT>, class SA = Dft_Show_Arc<GT>>
SA Aleph::Copy_Graph< GT, SN, SA >::sa
private

Definition at line 3718 of file tpl_graph.H.

Referenced by Aleph::Copy_Graph< GT, SN, SA >::copy().

◆ sn

template<class GT , class SN = Dft_Show_Node<GT>, class SA = Dft_Show_Arc<GT>>
SN Aleph::Copy_Graph< GT, SN, SA >::sn
private

Definition at line 3717 of file tpl_graph.H.

Referenced by Aleph::Copy_Graph< GT, SN, SA >::copy().


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