https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ChainControlData.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 "ChainControlData.h"
11
12const ChainControl &
14{
15 if (!_chain_control)
16 mooseError("No chain control has been set for chain control data '", name(), "'.");
17
18 return *_chain_control;
19}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
ChainControl * _chain_control
The control object that declared this control data.
const std::string & name() const
The full (unique) name of this particular piece of data.
const ChainControl & getChainControl() const
Get the pointer to the control object that declared this control data.
Control that additionally provides the capability to produce/consume data values, to allow control op...