www.mooseframework.org
GuaranteeConsumer.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef GUARANTEECONSUMER_H
9 #define GUARANTEECONSUMER_H
10 
11 #include "Guarantee.h"
12 #include "MooseTypes.h"
13 
14 class MooseObject;
15 class FEProblemBase;
16 class InputParameters;
17 class BlockRestrictable;
18 
25 {
26 public:
27  GuaranteeConsumer(MooseObject * moose_object);
28 
29 protected:
30  bool hasGuaranteedMaterialProperty(const MaterialPropertyName & prop, Guarantee guarantee);
31 
32 private:
34  const InputParameters & _gc_params;
35 
37  FEProblemBase * const _gc_feproblem;
38 
40  BlockRestrictable * const _gc_block_restrict;
41 };
42 
43 #endif // GUARANTEECONSUMER_H
BlockRestrictable *const _gc_block_restrict
Access block restrictions of the object with this interface.
GuaranteeConsumer(MooseObject *moose_object)
const InputParameters & _gc_params
Parameters of the object with this interface.
FEProblemBase *const _gc_feproblem
Reference to the FEProblemBase class.
Guarantee
Enum values for guarantees that can be demanded for material properties.
Definition: Guarantee.h:15
bool hasGuaranteedMaterialProperty(const MaterialPropertyName &prop, Guarantee guarantee)
Add-on class that provides the functionality to check if guarantees for material properties are provi...