EvidenceSet.h
Go to the documentation of this file.
1 /************************************************************************
2  * Copyright (C) 2012 Eindhoven University of Technology (TU/e). *
3  * All rights reserved. *
4  ************************************************************************
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions *
7  * are met: *
8  * *
9  * 1. Redistributions of source code must retain the above *
10  * copyright notice, this list of conditions and the following *
11  * disclaimer. *
12  * *
13  * 2. Redistributions in binary form must reproduce the above *
14  * copyright notice, this list of conditions and the following *
15  * disclaimer in the documentation and/or other materials *
16  * provided with the distribution. *
17  * *
18  * THIS SOFTWARE IS PROVIDED BY TU/e "AS IS" AND ANY EXPRESS OR *
19  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
20  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
21  * ARE DISCLAIMED. IN NO EVENT SHALL TU/e OR CONTRIBUTORS BE LIABLE *
22  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR *
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT *
24  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; *
25  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
26  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT *
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE *
28  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
29  * DAMAGE. *
30  * *
31  * The views and conclusions contained in the software and *
32  * documentation are those of the authors and should not be *
33  * interpreted as representing official policies, either expressed or *
34  * implied, of TU/e. *
35  ************************************************************************/
36 
37 #ifndef WM_EVIDENCESET_H_
38 #define WM_EVIDENCESET_H_
39 
40 #include "wire/core/datatypes.h"
41 
42 #include <vector>
43 
44 namespace mhf {
45 
46 class Evidence;
47 
55 class EvidenceSet {
56 
57 public:
58 
59  EvidenceSet();
60 
61  virtual ~EvidenceSet();
62 
67  void add(Evidence* ev);
68 
73  unsigned int size() const;
74 
79  const Time& getTimestamp() const;
80 
86 
92 
94 
95 protected:
96 
99 
101  std::vector<Evidence*> evidence_;
102 
103 };
104 
105 }
106 
107 #endif /* EVIDENCESET_H_ */
void add(Evidence *ev)
Adds evidence to the evidence set.
Definition: EvidenceSet.cpp:20
std::vector< Evidence * >::const_iterator end() const
Definition: EvidenceSet.cpp:41
std::vector< Evidence * >::const_iterator begin() const
Definition: EvidenceSet.cpp:37
virtual ~EvidenceSet()
Definition: EvidenceSet.cpp:16
double Time
Definition: datatypes.h:52
The class Evidence represents a set of properties (PropertySet) that all originate from one physical ...
Definition: Evidence.h:61
std::vector< Evidence * >::const_iterator const_iterator
Definition: EvidenceSet.h:93
unsigned int size() const
Returns the number of evidence items in the set.
Definition: EvidenceSet.cpp:29
A set of Evidence items which all originate from the same point int time.
Definition: EvidenceSet.h:55
const Time & getTimestamp() const
Returns the time from which all evidence in the set originates.
Definition: EvidenceSet.cpp:33
const_iterator(const field< oT > &in_M, const bool at_end=false)
Time timestamp_
The time from which all evidence in the set originates.
Definition: EvidenceSet.h:98
std::vector< Evidence * > evidence_
Collection of evidence items.
Definition: EvidenceSet.h:101
Definition: ClassModel.h:44


wire_core
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27