Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

globaldefinitions.h

Go to the documentation of this file.
00001 
00002 //  \brief Definition of some global variables and unique ID's for all classes.
00003 
00004 
00005 #ifndef _GLOBALVARIABLES_H_
00006 #define _GLOBALVARIABLES_H_
00007 
00008 // maximal synaptic delay in seconds
00009 #define MAX_SYNDELAY 0.1f
00010 
00012 typedef unsigned long uint32;
00013 
00015 typedef unsigned short uint16;
00016 
00018 double simTime(void);
00019 
00021 double simDT(void);
00022 
00024 class Network;
00025 Network *TheCurrentNetwork(void);
00026 
00028 #define SimulationTime (simTime())
00029 
00031 #define DT (simDT())
00032 
00035 #define PSR_MULTIPLE_TAU 5
00036 
00037 
00039 extern int MAXINTEGER;
00040 
00042 // currently, these are defined in analogneuron.cpp
00043 
00045 extern int nSharedMemUse; 
00046 
00048 extern double* sharedData;
00049 
00051 extern int memID;
00052 
00054 extern const char* rtMemFile;
00055 
00057 #define nMaxExtIO 1000 // (needed to avoid dynamic shMem allocation; change when no. of neurons is known
00058 
00059 
00060 #ifdef MATLAB_MEX_FILE
00061 #include <mex.h>
00062 #define csimPrintf mexPrintf
00063 #else
00064 #include <stdio.h>
00065 #define csimPrintf printf
00066 #endif
00067 
00068 #endif
00069 
00070 
00071