AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/inlet/Function.hpp>
Public Member Functions | |
Function (axom::sidre::Group *sidreGroup, axom::sidre::Group *root, FunctionVariant &&func, bool docEnabled=true) | |
template<typename FuncType > | |
std::function< FuncType > | get () const |
Returns a function of requested type. More... | |
template<typename Ret , typename... Args> | |
Ret | call (Args &&... args) const |
const axom::sidre::Group * | sidreGroup () const |
Returns pointer to the Sidre Group class for this Function. More... | |
operator bool () const | |
Checks whether the function exists. More... | |
std::string | name () const |
bool | verify () const |
This will be called by Inlet::verify to verify the contents of this Function. More... | |
Function & | required (bool isRequired=true) |
Set the required status of this Container. More... | |
bool | isRequired () const |
Return the required status of this Container. More... | |
Function & | registerVerifier (std::function< bool(const Function &)> lambda) |
Registers the function object that will verify this function during the verification stage. More... | |
|
inline |
|
inline |
Returns a function of requested type.
T | The type to retrieve |
Referenced by axom::inlet::Proxy::get().
|
inline |
Referenced by axom::inlet::Proxy::call().
|
inline |
|
inline |
Checks whether the function exists.
std::string axom::inlet::Function::name | ( | ) | const |
|
virtual |
This will be called by Inlet::verify to verify the contents of this Function.
Implements axom::inlet::Verifiable< Function >.
|
virtual |
Set the required status of this Container.
Set whether this Container is required, or not, to be in the input file. The default behavior is to not be required.
[in] | isRequired | Boolean value of whether Container is required |
Implements axom::inlet::Verifiable< Function >.
|
virtual |
Return the required status of this Container.
Return that this Function is required, or not, to be in the input file. The default behavior is to not be required.
Implements axom::inlet::Verifiable< Function >.
|
virtual |
Registers the function object that will verify this function during the verification stage.
[in] | The | function object that will be called by Container::verify(). |
Implements axom::inlet::Verifiable< Function >.