Const.h
Go to the documentation of this file.
00001 // Solution Global Definition
00002 #ifndef Const_H
00003 #define Const_H
00004 
00005 typedef double REAL_VALUE;
00006 #define BELIEF_DECIMAL_PRECISION 9
00007 
00008 #undef FOREACH_NOCONST
00009 #define FOREACH_NOCONST(type,elt,collection) \
00010         for (std::vector<type>::iterator elt=(collection).begin(), __end=(collection).end(); elt != __end;      elt++)
00011 
00012 #undef LISTFOREACH_NOCONST
00013 #define LISTFOREACH_NOCONST(type,elt,collection) \
00014         for (std::list<type>::iterator elt=(collection).begin(), __end=(collection).end(); elt != __end;        elt++)
00015 
00016 #undef FOREACH
00017 #define FOREACH(type,elt,collection) \
00018         for (std::vector<type>::const_iterator elt=(collection).begin(), __end=(collection).end(); elt != __end;        elt++)
00019 
00020 #undef LISTFOREACH
00021 #define LISTFOREACH(type,elt,collection) \
00022         for (std::list<type>::const_iterator elt=(collection).begin(), __end=(collection).end(); elt != __end;  elt++)
00023 
00024 
00025 #undef FOR
00026 #define FOR(i,n) \
00027         for (unsigned int i=0, __n = (n); i<__n; i++)
00028 
00029 #undef FOR_CV
00030 #define FOR_CV(v) \
00031         for ( std::vector<SparseVector_Entry>::const_iterator  __cv_i=v.data.begin(); __cv_i != v.data.end(); __cv_i++)
00032 
00033 #define CV_VAL(v)   (__cv_i->value)
00034 #define CV_INDEX(v) (__cv_i->index)
00035 
00036 #define SPARSE_EPS (1e-10)
00037 #define OBS_IS_ZERO_EPS (1e-10)
00038 #define ZMDP_BOUNDS_PRUNE_EPS (1e-10)
00039 
00040 #define state_vector SparseVector
00041 #define belief_vector SparseVector
00042 
00043 
00044 //#define outcome_prob_vector DenseVector
00045 //#define obs_prob_vector DenseVector
00046 //#define obsState_prob_vector DenseVector
00047 
00048 #define outcome_prob_vector SparseVector
00049 #define obs_prob_vector SparseVector
00050 #define obsState_prob_vector SparseVector
00051 
00052 #define alpha_vector DenseVector
00053 
00054 
00055 typedef int state_val;
00056 
00057 
00058 #ifdef DEBUG_TRACE_ON
00059         #define DEBUG_TRACE(v) v
00060 #else
00061         #define DEBUG_TRACE(v)
00062 #endif
00063 
00064 
00065 #ifdef DEBUG_LOG_ON
00066         #define DEBUG_LOG(v) v
00067 #else
00068         #define DEBUG_LOG(v)
00069 #endif
00070 
00071 
00072 #ifdef DEBUG_TRACE_ON1
00073         #define DEBUG_TRACE1(v) v
00074 #else
00075         #define DEBUG_TRACE1(v)
00076 #endif
00077 
00078 
00079 #endif
00080 


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:28