www.mooseframework.org
Classes | Functions
FunctionInterface.h File Reference

Go to the source code of this file.

Classes

class  FunctionInterface
 Interface for objects that need to use functions. More...
 

Functions

template<typename T >
InputParameters validParams ()
 This is the templated validParams() function that every MooseObject-derived class is required to specialize. More...
 
template<>
InputParameters validParams< FunctionInterface > ()
 

Function Documentation

◆ validParams()

template<typename T >
InputParameters validParams ( )

This is the templated validParams() function that every MooseObject-derived class is required to specialize.

Definition at line 1551 of file InputParameters.h.

1552 {
1553  // If users forgot to make their (old) validParams, they screwed up and
1554  // should get an error - so it is okay for us to try to call the new
1555  // validParams static function - which will error if they didn't implement
1556  // the new function. We can't have the old static assert that use to be
1557  // here because then the sfinae for toggling between old and new-style
1558  // templating will always see this function and call it even if an object
1559  // has *only* the new style validParams.
1560  return T::validParams();
1561 }

◆ validParams< FunctionInterface >()

validParams
InputParameters validParams()
This is the templated validParams() function that every MooseObject-derived class is required to spec...
Definition: InputParameters.h:1551