42 bool terminatecomputation;
43 bool graphreaderisworking;
51 int paralleloutputstate;
52 int paralleloutputsize;
54 string getCurrentTime(QTime& time);
60 void initParallelOutputState(
int size);
62 void serializeSpectrumPool(vector<cTheoreticalSpectrum*>& spectrumpool,
cTheoreticalSpectrum& ts);
64 void serializeHintsIndexPool(vector< vector< vector<int> > >& hintsindexpool, vector< vector<int> >& hintsindex);
66 void serializeUnmatchedPeaksPool(
int peaklistseriesvectorid, vector< vector<cPeaksList> >& unmatchedpeakspool, vector< vector<cPeaksList> >& unmatchedpeaks);
68 void serializeTheoreticalSpectrumListPool(
int peaklistseriesvectorid, vector<cTheoreticalSpectrumList*>& theoreticalspectrumlistpool,
cTheoreticalSpectrumList& theoreticalspectrumlist);
72 void printIonEstimations(
cPeaksList& peaklist);
105 typedef std::basic_ostream<char, std::char_traits<char> >
CoutType;
118 if (enablelogwindow) {
119 emit
message(to_string(x).c_str());
223 void stopComputation();
225 void graphReaderFinished();
The implementation of the de novo graph.
Isotope pattern cache (LRU cache is implemented).
cIsotopePatternCache isotopepatterncache
Global isotope pattern cache.
Definition: cMainThread.cpp:4
Definitions of program parameters.
The representation of a theoretical mass spectrum.
The class implementing the de novo graph.
Definition: cDeNovoGraph.h:46
Isotope pattern cache (LRU cache is implemented).
Definition: cIsotopePatternCache.h:21
The class representing a thread launched by the command 'Search->Run'.
Definition: cMainThread.h:34
void sendParameters(cParameters parameters)
Send parameters to cMainWindow when the thread has finished.
bool isGraphReaderWorking()
Check the flag whether the graph reader is working.
Definition: cMainThread.cpp:933
void reportSpectra()
Report results.
void setGraph(string s)
Set the graph into the cGraphWidget.
void run()
The main method of the thread.
Definition: cMainThread.cpp:992
void enableButtonsHandlingResults(bool enable)
Enable or disable buttons handling results.
void enableStopButton(bool enable)
Enable or disable the option 'Search->Stop'.
CoutType &(* StandardEndLine)(CoutType &)
This is the function signature of std::endl.
Definition: cMainThread.h:111
void emitEndSignals()
The signals emitted when the thread has successfully finished.
Definition: cMainThread.cpp:1592
void message(QString s)
A message which will be shown in log window.
void setGraphReaderIsWorking(bool working)
Set the flag that the graph reader is working.
Definition: cMainThread.cpp:928
std::basic_ostream< char, std::char_traits< char > > CoutType
This is the type of std::cout.
Definition: cMainThread.h:105
void addToParallelOutputState(int value)
Add a value to the output state (for internal threads).
Definition: cMainThread.cpp:979
cMainThread(cParameters ¶meters, cTheoreticalSpectrumList &listoftheoreticalspectra, bool enablelogwindow=true, bool enablestdout=true)
The constructor.
Definition: cMainThread.cpp:914
void enableRunButtonAndSettings(bool enable)
Enable or disable options 'Search->Run' and 'Search->Settings...'.
cMainThread & operator<<(const T &x)
Overloaded operator <<.
Definition: cMainThread.h:117
The class storing parameters of the application.
Definition: cParameters.h:82
The class representing a peak list.
Definition: cPeaksList.h:68
The class representing a theoretical mass spectrum.
Definition: cTheoreticalSpectrum.h:106
The class representing lists of theoretical spectra.
Definition: cTheoreticalSpectrumList.h:25
Auxiliary funtions and structures.