Commit 2666206d authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent afd957f1
...@@ -2,30 +2,6 @@ ...@@ -2,30 +2,6 @@
#include "Propagator.h" #include "Propagator.h"
#include <algorithm> #include <algorithm>
template <bool dir, typename vartype>
struct cmppos : public std::binary_function<vartype, vartype, bool>
{
bool operator()(vartype s1, vartype s2) const
{
const TimeJD& v1 = s1.get_date();
const TimeJD& v2 = s2.get_date();
return (v1 == v2) ? false : (v1 < v2) ^ dir;
}
};
template <bool dir, typename vartype>
struct cmporb : public std::binary_function<vartype, vartype, bool>
{
bool operator()(vartype s1, vartype s2) const
{
const TimeJD& v1 = s1.GetDate();
const TimeJD& v2 = s2.GetDate();
return (v1 == v2) ? false : (v1 < v2) ^ dir;
}
};
std::vector<TimeJD> generate_dates(const TimeJD& sdate, const TimeJD& edate, double step_sec) std::vector<TimeJD> generate_dates(const TimeJD& sdate, const TimeJD& edate, double step_sec)
{ {
std::vector<TimeJD> result; std::vector<TimeJD> result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment