/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Core/src/DDString.cc
20 строк
634 B
Cms Build
Clang-Format
29 май 2019, 08:28
29 май 2019, 08:28
96591f2
Код
Авторство
О чём код?
#include "DetectorDescription/Core/interface/DDString.h" #include <utility> DDString::DDString() : DDBase<DDName, std::unique_ptr<std::string>>() {} DDString::DDString(const DDName& name) : DDBase<DDName, std::unique_ptr<std::string>>() { create(name); } DDString::DDString(const DDName& name, std::unique_ptr<std::string> vals) { create(name, std::move(vals)); } std::ostream& operator<<(std::ostream& os, const DDString& cons) { os << "DDString name=" << cons.name(); if (cons.isDefined().second) { os << " val=" << cons.value(); } else { os << " constant is not yet defined, only declared."; } return os; }