EvalCaseResults.hpp
Go to the documentation of this file.
1 //
2 // EvalCaseResults.hpp
3 // Container for eval case results
4 //
5 
6 
7 #ifndef EVALCASERESULTS_HPP
8 #define EVALCASERESULTS_HPP
9 
10 #include <vector>
11 #include "../BasicDatatypes.hpp"
12 #include "EvalCaseResult.hpp"
13 
14 
15 namespace datatypes
16 {
17 
18 //
19 //
20 //
21 //
22 class EvalCaseResults : public BasicData
23 {
24 
25 protected:
26  typedef std::vector<EvalCaseResult> EvalCaseResultVector;
27 
28  // List of EvalCaseResults
29  EvalCaseResultVector m_evalCases;
30 
31 public:
33  EvalCaseResults (UINT8 deviceID);
35  const UINT32 getUsedMemory() const;
36 
37  std::string toString() const;
38 
39  // Returns the number of EventCaseResults.
40  size_t size() const { return m_evalCases.size(); }
41 
42  // Returns true if EvalCases is empty.
43  bool empty() const { return m_evalCases.empty(); }
44 
45 
46 
47  // Insert an EvalCaseResult.
48  void add(const EvalCaseResult& newCase) { m_evalCases.push_back(newCase); }
49 
50 
51  // Returns the n-th EventCaseResult
52  const EvalCaseResult& at(UINT8 n) const { return m_evalCases.at(n); }
53 
54  const EvalCaseResult& operator[] (UINT32 n) const { return m_evalCases[n]; }
55 
56  bool operator==(const EvalCaseResults& other);
57 
58  bool operator!=(const EvalCaseResults& other);
59 
60 };
61 
62 
63 } // END namespace datatypes
64 
65 
66 #endif // EVALCASERESULTS_HPP
void add(const EvalCaseResult &newCase)
std::vector< EvalCaseResult > EvalCaseResultVector
const EvalCaseResult & at(UINT8 n) const
uint32_t UINT32
bool operator!=(const EvalCaseResults &other)
std::string toString() const
EvalCaseResultVector m_evalCases
const EvalCaseResult & operator[](UINT32 n) const
bool operator==(const EvalCaseResults &other)
const UINT32 getUsedMemory() const
uint8_t UINT8


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33