Graph Drawing

 v. 2023.09 (Elderberry)

No Matches
basic.h File Reference

Basic declarations, included by all source files. More...

#include <ogdf/basic/internal/config.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <ctime>
#include <fstream>
#include <limits>

Go to the source code of this file.


class  ogdf::BucketFunc< E >
 Abstract base class for bucket functions. More...
class  ogdf::Initialization
 The class Initialization is used for initializing global variables. More...


namespace  ogdf
 The namespace for all OGDF objects.


#define OGDF_TRIVIALLY_COPYABLE   std::is_trivially_copyable
Assertions (only active in debug builds)
#define OGDF_ASSERT(expr)
 Assert condition expr. See doc/ for more information.
#define OGDF_HEAVY_ASSERT(expr)
 Assert condition expr when using heavy debugging. See OGDF_ASSERT.


enum class  ogdf::Direction { ogdf::before , ogdf::after }


bool ogdf::equalIgnoreCase (const string &str1, const string &str2)
 Compares the two strings str1 and str2, ignoring the case of characters.
bool ogdf::prefixIgnoreCase (const string &prefix, const string &str)
 Tests if prefix is a prefix of str, ignoring the case of characters.
double ogdf::randomDouble (double low, double high)
 Returns a random double value from the interval [low, high).
double ogdf::randomDoubleExponential (double beta)
 Returns a random double value from the exponential distribution.
double ogdf::randomDoubleNormal (double m, double sd)
 Returns a random double value from the normal distribution with mean m and standard deviation sd.
int ogdf::randomNumber (int low, int high)
 Returns random integer between low and high (including).
long unsigned int ogdf::randomSeed ()
 Returns a random value suitable as initial seed for a random number engine.
void ogdf::removeTrailingWhitespace (string &str)
 Removes trailing space, horizontal and vertical tab, feed, newline, and carriage return from str.
template<typename CONTAINER , typename T >
int ogdf::searchPos (const CONTAINER &C, const T &x)
 Searches for the position of x in container C; returns -1 if not found.
void ogdf::setSeed (int val)
 Sets the seed for functions like randomSeed(), randomNumber(), randomDouble().
double ogdf::usedTime (double &T)
 Returns used CPU time from T to current time and assigns current time to T.


bool ogdf::debugMode
 Set to true iff debug mode is used during compilation of the OGDF.
static Initialization ogdf::s_ogdfInitializer

Detailed Description

Basic declarations, included by all source files.

Carsten Gutwenger
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See 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

Definition in file basic.h.

Macro Definition Documentation


#define OGDF_TRIVIALLY_COPYABLE   std::is_trivially_copyable

Definition at line 89 of file basic.h.