www.mooseframework.org
MooseVariableDependencyInterface.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #pragma once
11 
12 #include <set>
13 
14 // Forward declarations
16 
18 {
19 public:
21 
26  const std::set<MooseVariableFEBase *> & getMooseVariableDependencies() const
27  {
29  }
30 
31 protected:
37  {
38  _moose_variable_dependencies.insert(var);
39  }
40  void addMooseVariableDependency(std::vector<MooseVariableFEBase *> vars)
41  {
42  _moose_variable_dependencies.insert(vars.begin(), vars.end());
43  }
44 
45 private:
46  std::set<MooseVariableFEBase *> _moose_variable_dependencies;
47 };
48 
void addMooseVariableDependency(std::vector< MooseVariableFEBase *> vars)
void addMooseVariableDependency(MooseVariableFEBase *var)
Call this function to add the passed in MooseVariableFEBase as a variable that this object depends on...
std::set< MooseVariableFEBase * > _moose_variable_dependencies
const std::set< MooseVariableFEBase * > & getMooseVariableDependencies() const
Retrieve the set of MooseVariableFEBases that this object depends on.