Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "ChainControlDataSystem.h" 11 : 12 62755 : ChainControlDataSystem::ChainControlDataSystem(MooseApp & app) : _app(app) {} 13 : 14 : bool 15 2176 : ChainControlDataSystem::hasChainControlData(const std::string & data_name) const 16 : { 17 2176 : return _chain_control_data_map.find(data_name) != _chain_control_data_map.end(); 18 : } 19 : 20 : void 21 279535 : ChainControlDataSystem::copyValuesBack() 22 : { 23 285394 : for (const auto & item : _chain_control_data_map) 24 5859 : item.second->copyValuesBack(); 25 279535 : } 26 : 27 : const std::map<std::string, std::unique_ptr<ChainControlDataBase>> & 28 56063 : ChainControlDataSystem::getChainControlDataMap() const 29 : { 30 56063 : return _chain_control_data_map; 31 : }