defines.h File Reference

Global defines. More...

#include "debug.h"
#include <algorithm>
#include <list>
#include <map>
#include <string>
#include <vector>
#include <backward/bvector.h>
#include <math.h>
#include <limits>

Go to the source code of this file.

Debugging Defines

Macros for enabling and disabling debug output

#define _DEBUG_CLASSIFIERS   1
#define _DEBUG_FEATURES   1
#define _DEBUG_PREDICTORS   1

Optimisation Defines

Macros for enabling and disabling various optimizations

#define NO_OPTIMIZATIONS   0
 turn off all optimizations (for debugging)
#define OPTIMIZATIONS_SPLAYTREE   0
 turn on splaytree optimization
#define OPTIMIZATIONS_CACHE_SIMILARITY   1
 turn on cache similarity optimization
#define OPTIMIZATIONS_SPLIT_MERGE   0
 turn on split/merge optimization

Global Typedefs

typedef vector< string > stringvector
typedef map< string, string > parametermap

Defines

#define NOMINMAX
 Prevent the MIN() and MAX() macros from being defined.
#define DUMP_LEAKS()
 Hint the debug heap to dump all memory blocks not freed so far.
#define rand_double()   ((double) rand() / (RAND_MAX + 0.00001))
#define INIT_EXPORT
#define FINI_EXPORT


Detailed Description

Global defines.

This file contains often used defines and includes and contains macros to have a platform and compiler independend way of accessing basic functions.

Note:
STL includes should only be done in this file to better cope with the different STL implementations.
© 2003-2004 by Rene Mayrhofer, Harald Radi

Date
2004-03-02 13:41:03 +0100 (Die, 02 Mär 2004)
Revision
674

Since:
Sun Jul 13 2003
Author:
Rene Mayrhofer <rene@mayrhofer.eu.org>

Harald Radi <harald.radi@nme.at>


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Id
defines.h 674 2004-03-02 12:41:03Z rene-cvs

Define Documentation

#define FINI_EXPORT
 

Compiler attributes for library cleanup

#define INIT_EXPORT
 

Compiler attributes for library initialization

 
#define rand_double  )     ((double) rand() / (RAND_MAX + 0.00001))
 

Get a random value

This macro returns a random value within the interval [0; 1[

Returns:
Random value


Typedef Documentation

typedef map<string, string> parametermap
 

A map to represent configuration file entries

typedef vector<string> stringvector
 

A simple ordered list of strings


Generated on Mon Jun 5 10:20:48 2006 for Intelligence.kdevelop by  doxygen 1.4.6