Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType > Struct Template Reference

Functor for conditional usage of a functor. More...

#include <ogdf/energybased/fast_multipole_embedder/FMEFunctional.h>

Public Member Functions

 if_then_else_functor (const CondType &c, const ThenType &f1)
 
 if_then_else_functor (const CondType &c, const ThenType &f1, const ElseType &f2)
 
template<typename A >
void operator() (A a)
 
template<typename A , typename B >
void operator() (A a, B b)
 

Public Attributes

CondType condFunc
 
ElseType elseFunc
 
ThenType thenFunc
 

Detailed Description

template<typename CondType, typename ThenType, typename ElseType = do_nothing>
struct ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >

Functor for conditional usage of a functor.

Definition at line 79 of file FMEFunctional.h.

Constructor & Destructor Documentation

◆ if_then_else_functor() [1/2]

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::if_then_else_functor ( const CondType &  c,
const ThenType &  f1 
)
inline

Definition at line 85 of file FMEFunctional.h.

◆ if_then_else_functor() [2/2]

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::if_then_else_functor ( const CondType &  c,
const ThenType &  f1,
const ElseType &  f2 
)
inline

Definition at line 87 of file FMEFunctional.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
template<typename A >
void ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::operator() ( a)
inline

Definition at line 90 of file FMEFunctional.h.

◆ operator()() [2/2]

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
template<typename A , typename B >
void ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::operator() ( a,
b 
)
inline

Definition at line 99 of file FMEFunctional.h.

Member Data Documentation

◆ condFunc

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
CondType ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::condFunc

Definition at line 81 of file FMEFunctional.h.

◆ elseFunc

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
ElseType ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::elseFunc

Definition at line 83 of file FMEFunctional.h.

◆ thenFunc

template<typename CondType , typename ThenType , typename ElseType = do_nothing>
ThenType ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >::thenFunc

Definition at line 82 of file FMEFunctional.h.


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