/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/TestObjects/interface/ThingWithPostInsert.h
28 строк
678 B
Andrea Bocci
Implement an integration test for post_insert()
25 фев 2025, 18:07
Не верифицирован
25 фев 2025, 18:07
60b81a3
Код
Авторство
О чём код?
#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