shared_recognition_results_manager.h
Go to the documentation of this file.
1 
18 #ifndef RECOGNIZER_PREDICTION_ISM_SHARED_MEMORY_MANAGER_H
19 #define RECOGNIZER_PREDICTION_ISM_SHARED_MEMORY_MANAGER_H
20 
21 /* ----------------- ISM ------------------ */
22 #include <ISM/common_type/RecognitionResult.hpp>
23 
24 /* ----------------- boost shared_memory ------------------ */
25 #include <mutex>
26 
28 {
30  {
31  public:
33  { }
34 
35  bool addResults(std::vector<ISM::RecognitionResultPtr> &result_ptrs);
36  bool popLastResult();
37  void clearResults();
39  unsigned int getResultsNumber();
40  ISM::RecognitionResult getLastResult();
41  std::vector<ISM::RecognitionResultPtr> getResults();
42  private:
43  std::mutex mutex_;
44 
45  std::vector<ISM::RecognitionResultPtr> shared_memory_vector_;
46  };
47 
49  std::ostream& operator<<(std::ostream &strm, SharedRecognitionResultsManager &p);
50  std::ostream& operator<<(std::ostream &strm, const SharedRecognitionResultsManagerPtr &pPtr);
51 }
52 #endif
std::ostream & operator<<(std::ostream &strm, SharedRecognitionResultsManager &p)
bool addResults(std::vector< ISM::RecognitionResultPtr > &result_ptrs)
boost::shared_ptr< SharedRecognitionResultsManager > SharedRecognitionResultsManagerPtr


asr_recognizer_prediction_ism
Author(s): Aumann Florian, Heller Florian, Hutmacher Robin, Meißner Pascal, Stöckle Patrick, Stroh Daniel
autogenerated on Wed Jan 8 2020 03:18:32