|
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.
|
|
Basic declarations, included by all source files.
- Author
- Carsten Gutwenger
- 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 basic.h.