00001 #ifndef CELLVELOCITYDATACLASSFACTORY_H 00002 #define CELLVELOCITYDATACLASSFACTORY_H 00003 00004 #include <BasicUtils/BasicClassFactory.h> 00005 #include "CellVelocityData.h" 00006 00007 00008 template <class B, class T> 00009 class CellVelocityDataClassFactory: public BasicClassFactory<B,T> { 00010 public: 00011 00012 CellVelocityDataClassFactory (cldeque<Coordinates3D<float> >::size_type _cldequeCapacity, 00013 cldeque<Coordinates3D<float> >::size_type _enoughDataThreshold 00014 ): 00015 BasicClassFactory<B,T>(), 00016 cldequeCapacity(_cldequeCapacity), 00017 enoughDataThreshold(_enoughDataThreshold) 00018 {} 00019 00023 virtual B *create() { 00024 return new T(cldequeCapacity , enoughDataThreshold); 00025 00026 } 00027 00031 virtual void destroy(B *classNode) {delete classNode;} 00032 00033 private: 00034 cldeque<Coordinates3D<float> >::size_type cldequeCapacity; 00035 cldeque<Coordinates3D<float> >::size_type enoughDataThreshold; 00036 00037 }; 00038 00039 00040 #endif
1.5.6