File indexing completed on 2025-02-26 04:25:07
0001 #ifndef DataFormats_TestObjects_interface_ThingWithPostInsert_h
0002 #define DataFormats_TestObjects_interface_ThingWithPostInsert_h
0003
0004 #include <cstdint>
0005
0006 #include "FWCore/Utilities/interface/typedefs.h"
0007
0008 namespace edmtest {
0009
0010 class ThingWithPostInsert {
0011 public:
0012 ThingWithPostInsert() : value_{0}, valid_{false} {};
0013 explicit ThingWithPostInsert(cms_int32_t v) : value_{v}, valid_{false} {}
0014
0015 void post_insert() { valid_ = true; }
0016
0017 int32_t value() const { return value_; }
0018
0019 bool valid() const { return valid_; }
0020
0021 private:
0022 cms_int32_t value_;
0023 bool valid_;
0024 };
0025
0026 }
0027
0028 #endif