https://mooseframework.inl.gov
MappingInterface.h
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 #pragma once
11 
12 #include "InputParameters.h"
13 #include "FEProblemBase.h"
14 #include "VariableMappingBase.h"
15 
20 {
21 public:
23 
25  MappingInterface(const MooseObject * moose_object);
26 
31  VariableMappingBase & getMapping(const std::string & name) const;
32 
37  VariableMappingBase & getMappingByName(const UserObjectName & name) const;
38 
39 private:
42 
45 };
VariableMappingBase & getMapping(const std::string &name) const
Get the mapping using the parameters of the moose object.
FEProblemBase & _smi_feproblem
Reference to FEProblemBase instance.
const std::string name
Definition: Setup.h:20
VariableMappingBase & getMappingByName(const UserObjectName &name) const
Get the mapping by supplying the name of the object in the warehouse.
An interface class that helps getting access to Mapping objects.
const InputParameters & _smi_params
Parameters of the object with this interface.
This is an abstract base class for objects that provide mapping between a full-order and a latent spa...
MappingInterface(const MooseObject *moose_object)
Construct using a moose object (usually the object which inherits from the interface) ...
static InputParameters validParams()