Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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 95 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 100 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 102 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 106 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 115 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 96 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 98 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 97 of file FMEFunctional.h.


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