43 const std::shared_ptr<CPick> &rhs)
const {
44 if (lhs->getTSort() < rhs->getTSort()) {
75 explicit CPickList(
int numThreads = 1,
int sleepTime = 50,
76 int checkInterval = 300);
88 void clear()
override;
104 bool receiveExternalMessage(std::shared_ptr<json::Object> com);
128 bool addPick(std::shared_ptr<json::Object> pick);
143 std::shared_ptr<CPick> getDuplicate(
double newTPick, std::string newSCNL,
160 bool scavenge(std::shared_ptr<CHypo> hyp,
180 int getMaxAllowablePickCount()
const;
187 void setMaxAllowablePickCount(
int pickMax);
194 int getCountOfTotalPicksProcessed()
const;
216 std::vector<std::weak_ptr<CPick>> getPicks(
double t1,
double t2);
233 void updatePosition(std::shared_ptr<CPick> pick);
239 void eraseFromMultiset(std::shared_ptr<CPick> pick);
253 int m_iMaxAllowablePickCount;
259 int m_iCountOfTotalPicksProcessed;
265 std::multiset<std::shared_ptr<CPick>,
PickCompare> m_msPickList;
271 std::queue<std::shared_ptr<json::Object>> m_qPicksToProcess;
276 std::mutex m_PicksToProcessMutex;
285 mutable std::recursive_mutex m_PickListMutex;
291 std::shared_ptr<CPick> m_LowerValue;
297 std::shared_ptr<CPick> m_UpperValue;
303 static const int k_nMaxAllowablePickCountDefault = 10000;
308 static const int k_ProcessQueueMaximumSize = 1000;
glasscore pick list class
Definition: PickList.h:62
glasscore site list class
Definition: SiteList.h:40
WorkState
glass3::util::WorkState enumeration
Definition: workstate.h:25
CPickList comparison function.
Definition: PickList.h:41
The namespace containing the core algorithm.
Definition: Correlation.h:17
static constexpr double k_nHypoSearchPastDurationForPick
The duration in seconds to search into the past for hypos matching a pick.
Definition: HypoList.h:332
glass3::util::ThreadBaseClass class
Definition: threadbaseclass.h:34
bool operator()(const std::shared_ptr< CPick > &lhs, const std::shared_ptr< CPick > &rhs) const
Definition: PickList.h:42