|
|
|
@ -1,10 +1,8 @@
|
|
|
|
|
#pragma once |
|
|
|
|
#include "mdatetime.h" |
|
|
|
|
#include <memory> |
|
|
|
|
#include <vector> |
|
|
|
|
|
|
|
|
|
#if !defined(M__TINDEXES) |
|
|
|
|
#define M__TINDEXES |
|
|
|
|
|
|
|
|
|
using michlib::MDateTime; |
|
|
|
|
|
|
|
|
|
template<class T> std::vector<size_t> GetTIndexes(const T& adapter, const MDateTime& b, const MDateTime& e) |
|
|
|
@ -63,5 +61,3 @@ template<class T> size_t GetTIndex(const T& adapter, const MDateTime& t)
|
|
|
|
|
if(t >= adapter.Time(i) && t <= adapter.Time(i + 1)) return (t - adapter.Time(i) <= adapter.Time(i + 1) - t) ? i : (i + 1); |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
|