https://mooseframework.inl.gov
ChainControlDataSystem.C
Go to the documentation of this file.
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 
13 
14 bool
15 ChainControlDataSystem::hasChainControlData(const std::string & data_name) const
16 {
17  return _chain_control_data_map.find(data_name) != _chain_control_data_map.end();
18 }
19 
20 void
22 {
23  for (const auto & item : _chain_control_data_map)
24  item.second->copyValuesBack();
25 }
26 
27 const std::map<std::string, std::unique_ptr<ChainControlDataBase>> &
29 {
31 }
ChainControlDataSystem(MooseApp &app)
Base class for MOOSE-based applications.
Definition: MooseApp.h:85
void copyValuesBack()
Copies current chain control data values into old values.
std::map< std::string, std::unique_ptr< ChainControlDataBase > > _chain_control_data_map
Map of chain control data name to its value.
bool hasChainControlData(const std::string &data_name) const
Queries if the chain control data of the given name exists.
const std::map< std::string, std::unique_ptr< ChainControlDataBase > > & getChainControlDataMap() const
Gets the map of ChainControlData names to the relevant ChainControlDataBase.