00001 #ifndef AFL_TYPES_H 00002 #define AFL_TYPES_H 00003 00004 #include <string> 00005 #include <map> 00006 00007 #include "ddf/ddftypes.h" 00008 00009 namespace afl 00010 { 00014 typedef ddf::data_t data_t; 00015 00019 typedef char*** aspectid_t; 00020 00024 typedef char**** interp_t; 00025 } 00026 00027 #include "point.h" 00028 #include "value.h" 00029 00030 namespace afl 00031 { 00032 00033 class Function; 00038 typedef ValueT<data_t> Value; 00039 00043 typedef ValueT<Function*> FnValue; 00044 00049 typedef PointT<Value> Derivative; 00050 00055 typedef PointT<data_t> Point; 00056 00060 typedef char troolean; 00061 00066 typedef std::map<std::string,std::string> Parameters; 00067 00068 // constants 00069 00073 const troolean outside = -1; 00074 00078 const troolean boundary = 0; 00079 00083 const troolean inside = 1; 00084 00088 const bool red = true; 00089 00093 const bool black = false; 00094 00099 const size_t boundaryParts = 50; 00100 00102 const interp_t I_NONE = interp_t(0); 00104 const interp_t I_LINEAR = interp_t(1); 00106 const interp_t I_QUADRATIC = interp_t(2); 00108 const interp_t I_CUBIC = interp_t(3); 00110 const aspectid_t FIELD_NONE = aspectid_t(0); 00112 const aspectid_t FIELD_X = aspectid_t(101); 00114 const aspectid_t FIELD_Y = aspectid_t(102); 00116 const aspectid_t FIELD_Z = aspectid_t(103); 00118 const aspectid_t FIELD_T = aspectid_t(104); 00120 const aspectid_t FIELD_DX = aspectid_t(105); 00122 const aspectid_t FIELD_DY = aspectid_t(106); 00124 const aspectid_t FIELD_DZ = aspectid_t(107); 00126 const aspectid_t FIELD_DT = aspectid_t(108); 00127 00129 extern data_t nan; 00130 00132 extern data_t epsilon; 00133 }; 00134 00135 #endif
1.4.6