Basic declarations, included by all source files. More...
#include <iostream>#include <fstream>#include <stdio.h>#include <stdarg.h>#include <time.h>#include <string.h>#include <math.h>#include <ogdf/basic/exceptions.h>#include <ogdf/basic/memory.h>#include <ogdf/basic/comparer.h>Go to the source code of this file.
Classes | |
| class | ogdf::Initialization |
| class | ogdf::BucketFunc< E > |
| Abstract base class for bucket functions. More... | |
Namespaces | |
| namespace | ogdf |
The namespace for all OGDF objects. | |
Defines | |
| #define | OGDF_ASSERT(expr) |
| #define | OGDF_ASSERT_IF(minLevel, expr) |
| #define | OGDF_SET_DEBUG_LEVEL(level) |
| #define | OGDF_LIKELY(x) (x) |
| #define | OGDF_UNLIKELY(x) (x) |
| #define | OGDF_NODEFAULT |
| #define | OGDF_DECL_ALIGN(b) |
| #define | __SIZEOF_POINTER__ 4 |
| #define | OGDF_LP_SOLVER |
| #define | OGDF_EXPORT |
| #define | SIZE_MAX ((size_t)-1) |
Typedefs | |
| typedef signed char | __int8 |
| typedef short | __int16 |
| typedef int | __int32 |
| typedef long long | __int64 |
| typedef unsigned char | __uint8 |
| typedef unsigned short | __uint16 |
| typedef unsigned int | __uint32 |
| typedef unsigned long long | __uint64 |
Enumerations | |
| enum | ogdf::Direction { ogdf::before, ogdf::after } |
| enum | ogdf::FileType { ogdf::ftEntry, ogdf::ftFile, ogdf::ftDirectory } |
The type of an entry in a directory. More... | |
Functions | |
| template<class T > | |
| T | ogdf::min (const T &x, const T &y) |
| Returns minimum of x and y. | |
| template<class T > | |
| T | ogdf::max (const T &x, const T &y) |
| Returns maximum of x and y. | |
| int | ogdf::randomNumber (int low, int high) |
| Returns random integer between low and high (including). | |
| double | ogdf::randomDouble (double low, double high) |
| Returns random double value between low and high. | |
| double | ogdf::randomDoubleNormal (double m, double sd) |
| double | ogdf::usedTime (double &T) |
| template<class E > | |
| bool | ogdf::doDestruction (const E *) |
| template<> | |
| bool | ogdf::doDestruction (const char *) |
| template<> | |
| bool | ogdf::doDestruction< int > (const int *) |
| template<> | |
| bool | ogdf::doDestruction< double > (const double *) |
| bool | ogdf::isFile (const char *fileName) |
| Returns true iff fileName is a regular file (not a directory). | |
| bool | ogdf::isDirectory (const char *fileName) |
| Returns true iff fileName is a directory. | |
| void | ogdf::changeDir (const char *dirName) |
| Changes current directory to dirName. | |
| void | ogdf::getFiles (const char *dirName, List< String > &files, const char *pattern="*") |
| Returns in files the list of files in directory dirName. | |
| void | ogdf::getFilesAppend (const char *dirName, List< String > &files, const char *pattern="*") |
| Appends to files the list of files in directory dirName. | |
| void | ogdf::getSubdirs (const char *dirName, List< String > &subdirs, const char *pattern="*") |
| Returns in subdirs the list of directories contained in directory dirName. | |
| void | ogdf::getSubdirsAppend (const char *dirName, List< String > &subdirs, const char *pattern="*") |
| Appends to subdirs the list of directories contained in directory dirName. | |
| void | ogdf::getEntries (const char *dirName, List< String > &entries, const char *pattern="*") |
| Returns in entries the list of all entries contained in directory dirName. | |
| void | ogdf::getEntriesAppend (const char *dirName, List< String > &entries, const char *pattern="*") |
| Appends to entries the list of all entries contained in directory dirName. | |
| void | ogdf::getEntries (const char *dirName, FileType t, List< String > &entries, const char *pattern="*") |
| Returns in entries the list of all entries of type t contained in directory dirName. | |
| void | ogdf::getEntriesAppend (const char *dirName, FileType t, List< String > &entries, const char *pattern="*") |
| Appends to entries the list of all entries of type t contained in directory dirName. | |
| const char | ogdf::NEWLINE ('\n') |
| const char | ogdf::INDENTCHAR (' ') |
| const int | ogdf::INDENTSIZE (2) |
| int | ogdf::sprintf (char *buffer, size_t, const char *format,...) |
| int | ogdf::vsprintf (char *buffer, size_t, const char *format, va_list argptr) |
| int | ogdf::strcat (char *strDest, size_t, const char *strSource) |
| int | ogdf::strcpy (char *strDest, size_t, const char *strSource) |
| int | ogdf::strncpy (char *strDest, size_t, const char *strSource, size_t count) |
| int | ogdf::localtime (struct tm *ptm, const time_t *timer) |
Variables | |
| static Initialization | ogdf::s_ogdfInitializer |
| const double | ogdf::pi = 3.1415926535897932384626433832795028841971 |
| const double | ogdf::euler = 2.7182818284590452353602874713526624977572 |
Basic declarations, included by all source files.
Copyright (C). All rights reserved. See README.txt in the root directory of the OGDF installation for details.
Definition in file basic.h.