7 #ifndef CORRELATIONLIST_H 8 #define CORRELATIONLIST_H 33 bool operator()(
const std::shared_ptr<CCorrelation> &lhs,
34 const std::shared_ptr<CCorrelation> &rhs)
const {
35 if (lhs->getTCorrelation() < rhs->getTCorrelation()) {
85 bool receiveExternalMessage(std::shared_ptr<json::Object> com);
108 bool addCorrelationFromJSON(std::shared_ptr<json::Object> com);
124 bool checkDuplicate(
CCorrelation * newCorrelation,
double tWindow,
141 bool scavenge(std::shared_ptr<CHypo> hyp,
double tWindow = 2.5);
164 int getMaxAllowableCorrelationCount()
const;
171 void setMaxAllowableCorrelationCount(
int correlationMax);
178 int getCountOfTotalCorrelationsProcessed()
const;
200 std::vector<std::weak_ptr<CCorrelation>> getCorrelations(
double t1,
215 std::atomic<int> m_iMaxAllowableCorrelationCount;
221 std::atomic<int> m_iCountOfTotalCorrelationsProcessed;
236 mutable std::recursive_mutex m_CorrelationListMutex;
241 static const int k_nMaxAllowableCorrelationCountDefault = 10000;
244 #endif // CORRELATIONLIST_H CCorrelationList comparison function.
Definition: CorrelationList.h:32
glasscore site list class
Definition: SiteList.h:40
glasscore correlation class
Definition: Correlation.h:45
bool operator()(const std::shared_ptr< CCorrelation > &lhs, const std::shared_ptr< CCorrelation > &rhs) const
Definition: CorrelationList.h:33
glasscore correlation list class
Definition: CorrelationList.h:54
The namespace containing the core algorithm.
Definition: Correlation.h:17