#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/inlet/Function.hpp>
◆ Verifier
A function which can verify the contents of the item being verifier. It should report any errors via INLET_VERIFICATION_WARNING, passing in the given array of errors.
◆ Function()
◆ get()
template<typename FuncType >
std::function<FuncType> axom::inlet::Function::get |
( |
| ) |
const |
|
inline |
◆ call()
template<typename Ret , typename... Args>
Ret axom::inlet::Function::call |
( |
Args &&... |
args | ) |
const |
|
inline |
◆ sidreGroup()
Returns pointer to the Sidre Group class for this Function.
Provides access to the Sidre Group class that holds all the stored information for this Function instance.
◆ operator bool()
axom::inlet::Function::operator bool |
( |
| ) |
const |
|
inline |
Checks whether the function exists.
◆ name()
std::string axom::inlet::Function::name |
( |
| ) |
const |
◆ verify()
bool axom::inlet::Function::verify |
( |
std::vector< VerificationError > * |
errors = nullptr | ) |
const |
|
overridevirtual |
Verifies the object to make sure it satisfies the imposed requirements.
- Parameters
-
[in] | errors | An optional vector of errors to append to in the case of verification failure |
Ownership is not taken of errors, the raw pointer is only used for its optional reference semantics, as opposed to something like std::optional<std::reference_wrapper<T>>
Implements axom::inlet::Verifiable< Function >.
◆ required()
Function& axom::inlet::Function::required |
( |
bool |
isRequired = true | ) |
|
|
overridevirtual |
Set the required status of this object.
Set whether this object is required, or not, to be in the input file. The default behavior is to not be required.
- Parameters
-
[in] | isRequired | Boolean value of whether object is required |
- Returns
- Reference to calling object, for chaining
Implements axom::inlet::Verifiable< Function >.
◆ isRequired()
bool axom::inlet::Function::isRequired |
( |
| ) |
const |
|
overridevirtual |
Return the required status.
Return that this object is required, or not, to be in the input file. The default behavior is to not be required.
- Returns
- Boolean value of whether this object is required
Implements axom::inlet::Verifiable< Function >.
◆ registerVerifier() [1/2]
Registers the function object that will verify this object's contents during the verification stage.
- Parameters
-
[in] | verifier | The function which will verify the contents of the container. |
Implements axom::inlet::Verifiable< Function >.
◆ registerVerifier() [2/2]
Registers the function object that will verify this object's contents during the verification stage.
- Parameters
-
[in] | verifier | The function object. |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/latest/src/axom/inlet/Function.hpp