00001 #ifndef CELLVELOCITYDATAACCESSOR_H 00002 #define CELLVELOCITYDATAACCESSOR_H 00003 00004 #include "CellVelocityData.h" 00005 #include <BasicUtils/BasicClassAccessor.h> 00006 #include "CellVelocityDataClassFactory.h" 00007 00008 template<class T> 00009 class CellVelocityDataAccessor: public BasicClassAccessor<T>{ 00010 public: 00011 CellVelocityDataAccessor (cldeque<Coordinates3D<float> >::size_type _cldequeCapacity, 00012 cldeque<Coordinates3D<float> >::size_type _enoughDataThreshold 00013 ): 00014 BasicClassAccessor<T>(), 00015 cldequeCapacity(_cldequeCapacity), 00016 enoughDataThreshold(_enoughDataThreshold) 00017 {} 00018 00019 protected: 00020 00021 virtual BasicClassFactoryBase<void> *createClassFactory(){ 00022 return new CellVelocityDataClassFactory<void, T>(cldequeCapacity , enoughDataThreshold); 00023 } 00024 private: 00025 cldeque<Coordinates3D<float> >::size_type cldequeCapacity; 00026 cldeque<Coordinates3D<float> >::size_type enoughDataThreshold; 00027 00028 }; 00029 00030 #endif
1.5.6