1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef DataFormats_TestObjects_interface_ThingWithPostInsert_h
#define DataFormats_TestObjects_interface_ThingWithPostInsert_h
#include <cstdint>
#include "FWCore/Utilities/interface/typedefs.h"
namespace edmtest {
class ThingWithPostInsert {
public:
ThingWithPostInsert() : value_{0}, valid_{false} {};
explicit ThingWithPostInsert(cms_int32_t v) : value_{v}, valid_{false} {}
void post_insert() { valid_ = true; }
int32_t value() const { return value_; }
bool valid() const { return valid_; }
private:
cms_int32_t value_;
bool valid_;
};
} // namespace edmtest
#endif // DataFormats_TestObjects_interface_ThingWithPostInsert_h
|