3 #ifndef __zd_coord_obj_template_hpp
4 #define __zd_coord_obj_template_hpp
12 #include "zd_coord_obj_stream.hpp"
60 extern int g_ZdCoordObj_iCommonNameCounter;
68 std::vector<T>::iterator m_itvCoordObjs;
80 "ZdCoordObj", szDocName)
101 mm[0] = mm[1] = (double) *it;
119 std::vector<double> m_vDelta;
120 std::vector<T>::iterator it;
122 m_vDelta.push_back(fabs((
double)*it - (
double)*(1+it)));
126 std::sort(m_vDelta.begin(), m_vDelta.end());
129 return m_vDelta[m_vDelta.size()/2];
162 const T& obj = *m_itvCoordObjs;
182 if(!strcmp(szType,
"ZdCoordObj"))
virtual bool goNextCoord()
Definition: zd_coord_obj_template.hpp:151
virtual bool goFirstCoord()
Definition: zd_coord_obj_template.hpp:144
virtual bool getCoordRange(double c[2])
Definition: zd_coord_obj_template.hpp:95
virtual double averageCoordStep()
Definition: zd_coord_obj_template.hpp:114
std::vector< T > m_vCoordObjs
Definition: zd_coord_obj_template.hpp:73
virtual double coord()
Definition: zd_coord_obj_template.hpp:161
Definition: zd_coord_obj_stream.hpp:15
virtual int ensembleLength()
Definition: zd_coord_obj_template.hpp:168
virtual bool compatibleType(const char *szType) const
Definition: zd_coord_obj_template.hpp:63
Definition: zqb_autoname.hpp:18
virtual szDocName void sort()
Definition: zd_coord_obj_template.hpp:88
virtual int maxEnsembleLength()
Definition: zd_coord_obj_template.hpp:133
virtual bool compatibleType(const char *szType) const
Definition: zd_coord_obj_template.hpp:178