Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

FMEFunctional.h File Reference

Definitions of functors used in FME layout. More...

#include <ogdf/basic/basic.h>
#include <algorithm>
#include <cstdint>

Go to the source code of this file.

Classes

struct  ogdf::fast_multipole_embedder::composition_functor< FuncFirst, FuncSecond >
 Functor for composing two other functors. More...
 
struct  ogdf::fast_multipole_embedder::const_condition< result >
 condition functor for returning a constant boolean value More...
 
struct  ogdf::fast_multipole_embedder::do_nothing
 the useless do nothing function More...
 
struct  ogdf::fast_multipole_embedder::if_then_else_functor< CondType, ThenType, ElseType >
 Functor for conditional usage of a functor. More...
 
struct  ogdf::fast_multipole_embedder::min_max_functor< T >
 generic min max functor for an array More...
 
struct  ogdf::fast_multipole_embedder::not_condition_functor< Func >
 functor for negating a condition More...
 
struct  ogdf::fast_multipole_embedder::pair_call_functor< F, A >
 helper functor to generate a pair as parameters More...
 
struct  ogdf::fast_multipole_embedder::pair_vice_versa_functor< Func >
 functor for invoking a functor for a pair(u,v) and then (v,u) More...
 

Namespaces

 ogdf
 The namespace for all OGDF objects.
 
 ogdf::fast_multipole_embedder
 

Typedefs

using ogdf::fast_multipole_embedder::false_condition = const_condition< false >
 
using ogdf::fast_multipole_embedder::true_condition = const_condition< true >
 the corresponding typedefs More...
 

Functions

template<typename FuncFirst , typename FuncSecond >
static composition_functor< FuncFirst, FuncSecond > ogdf::fast_multipole_embedder::func_comp (const FuncFirst &first, const FuncSecond &second)
 create a functor composition of two functors More...
 
template<typename CondType , typename ThenType >
static if_then_else_functor< CondType, ThenType > ogdf::fast_multipole_embedder::if_then (const CondType &cond, const ThenType &thenFunc)
 creates an if then functor with a condition and a then functor More...
 
template<typename CondType , typename ThenType , typename ElseType >
static if_then_else_functor< CondType, ThenType, ElseType > ogdf::fast_multipole_embedder::if_then_else (const CondType &cond, const ThenType &thenFunc, const ElseType &elseFunc)
 creates an if then else functor with a condition and a then and an else functor More...
 
template<typename Func >
static not_condition_functor< Func > ogdf::fast_multipole_embedder::not_condition (const Func &func)
 creator of the negator More...
 
template<typename F , typename A >
static pair_call_functor< F, A > ogdf::fast_multipole_embedder::pair_call (F f, A a)
 creates a pair call resulting in a call f(a, *) More...
 
template<typename Func >
static pair_vice_versa_functor< Func > ogdf::fast_multipole_embedder::pair_vice_versa (const Func &f)
 creates a functor for invoking a functor for a pair(u,v) and then (v,u) More...
 

Detailed Description

Definitions of functors used in FME layout.

Author
Martin Gronemann
License:
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See README.md in the OGDF root directory for details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 or 3 as published by the Free Software Foundation; see the file LICENSE.txt included in the packaging of this file for details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/copyleft/gpl.html

Definition in file FMEFunctional.h.