www.mooseframework.org
MooseVariableDependencyInterface.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef MOOSEVARIABLEDEPENDENCYINTERFACE_H
16 #define MOOSEVARIABLEDEPENDENCYINTERFACE_H
17 
18 #include <set>
19 
20 // Forward declarations
21 class MooseVariable;
22 
24 {
25 public:
27 
32  const std::set<MooseVariable *> & getMooseVariableDependencies() const
33  {
35  }
36 
37 protected:
43  void addMooseVariableDependency(std::vector<MooseVariable *> vars)
44  {
45  _moose_variable_dependencies.insert(vars.begin(), vars.end());
46  }
47 
48 private:
49  std::set<MooseVariable *> _moose_variable_dependencies;
50 };
51 
52 #endif // MOOSEVARIABLEDEPENDENCYINTERFACE_H
Class for stuff related to variables.
Definition: MooseVariable.h:43
std::set< MooseVariable * > _moose_variable_dependencies
void addMooseVariableDependency(MooseVariable *var)
Call this function to add the passed in MooseVariable as a variable that this object depends on...
const std::set< MooseVariable * > & getMooseVariableDependencies() const
Retrieve the set of MooseVariables that this object depends on.
void addMooseVariableDependency(std::vector< MooseVariable * > vars)