Open
Graph Drawing
Framework

 v.2012.07
 

basic.h File Reference

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

#include <windows.h>
#include <iostream>
#include <fstream>
#include <algorithm>
#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::BucketFunc< E >
 Abstract base class for bucket functions. More...
class  ogdf::Initialization

Namespaces

namespace  ogdf
 The namespace for all OGDF objects.

Macros

#define __SIZEOF_POINTER__   4
#define _WIN32_WINNT   0x0500
#define NOMINMAX
#define OGDF_ASSERT(expr)
#define OGDF_ASSERT_IF(minLevel, expr)
#define OGDF_BASIC_H
#define OGDF_DECL_ALIGN(b)
#define OGDF_EXPORT
#define OGDF_LIKELY(x)   (x)
#define OGDF_LP_SOLVER
#define OGDF_NODEFAULT
#define OGDF_SET_DEBUG_LEVEL(level)
#define OGDF_UNLIKELY(x)   (x)
#define SIZE_MAX   ((size_t)-1)
#define WIN32_EXTRA_LEAN
#define WIN32_LEAN_AND_MEAN

Typedefs

typedef short __int16
typedef int __int32
typedef long long __int64
typedef signed char __int8
typedef unsigned short __uint16
typedef unsigned int __uint32
typedef unsigned long long __uint64
typedef unsigned char __uint8

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

bool ogdf::changeDir (const char *dirName)
 Changes current directory to dirName; returns true if successful.
template<class E >
bool ogdf::doDestruction (const E *)
template<>
bool ogdf::doDestruction (const char *)
template<>
bool ogdf::doDestruction< double > (const double *)
template<>
bool ogdf::doDestruction< int > (const int *)
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::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, List< String > &entries, const char *pattern="*")
 Appends to entries the list of all entries 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.
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.
bool ogdf::isDirectory (const char *fileName)
 Returns true iff fileName is a directory.
bool ogdf::isFile (const char *fileName)
 Returns true iff fileName is a regular file (not a directory).
int ogdf::localtime (struct tm *ptm, const time_t *timer)
double ogdf::randomDouble (double low, double high)
 Returns random double value between low and high.
double ogdf::randomDoubleNormal (double m, double sd)
int ogdf::randomNumber (int low, int high)
 Returns random integer between low and high (including).
int ogdf::sprintf (char *buffer, size_t, const char *format,...)
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)
double ogdf::usedTime (double &T)
int ogdf::vsprintf (char *buffer, size_t, const char *format, va_list argptr)

Variables

static Initialization ogdf::s_ogdfInitializer

Detailed Description

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.txt in the root directory of the OGDF installation 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
See also:
http://www.gnu.org/copyleft/gpl.html

Definition in file basic.h.


Macro Definition Documentation

#define __SIZEOF_POINTER__   4

Definition at line 186 of file basic.h.

#define _WIN32_WINNT   0x0500

Definition at line 115 of file basic.h.

#define NOMINMAX

Definition at line 113 of file basic.h.

#define OGDF_ASSERT (   expr)

Definition at line 133 of file basic.h.

#define OGDF_ASSERT_IF (   minLevel,
  expr 
)

Definition at line 134 of file basic.h.

#define OGDF_BASIC_H

Definition at line 49 of file basic.h.

#define OGDF_DECL_ALIGN (   b)

Definition at line 179 of file basic.h.

#define OGDF_EXPORT

Definition at line 214 of file basic.h.

#define OGDF_LIKELY (   x)    (x)

Definition at line 175 of file basic.h.

#define OGDF_LP_SOLVER

Definition at line 93 of file basic.h.

#define OGDF_NODEFAULT

Definition at line 177 of file basic.h.

#define OGDF_SET_DEBUG_LEVEL (   level)

Definition at line 135 of file basic.h.

#define OGDF_UNLIKELY (   x)    (x)

Definition at line 176 of file basic.h.

#define SIZE_MAX   ((size_t)-1)

Definition at line 284 of file basic.h.

#define WIN32_EXTRA_LEAN

Definition at line 110 of file basic.h.

#define WIN32_LEAN_AND_MEAN

Definition at line 111 of file basic.h.


Typedef Documentation

typedef short __int16

Definition at line 241 of file basic.h.

typedef int __int32

Definition at line 242 of file basic.h.

typedef long long __int64

Definition at line 243 of file basic.h.

typedef signed char __int8

Definition at line 240 of file basic.h.

typedef unsigned short __uint16

Definition at line 245 of file basic.h.

typedef unsigned int __uint32

Definition at line 246 of file basic.h.

typedef unsigned long long __uint64

Definition at line 247 of file basic.h.

typedef unsigned char __uint8

Definition at line 244 of file basic.h.