AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A wrapper class that enables constraints on groups of Fields. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.5.0/src/axom/inlet/Field.hpp>
Public Member Functions | |
AggregateField (std::vector< std::reference_wrapper< VerifiableScalar >> &&fields) | |
virtual | ~AggregateField ()=default |
bool | verify () const |
Called by Inlet::verify to verify the contents of this Field. More... | |
AggregateField & | required (bool isRequired) |
Set the required status of this Field. More... | |
bool | isRequired () const |
Return the required status of this Field. More... | |
AggregateField & | defaultValue (const std::string &value) |
Set the default value of this Field. More... | |
AggregateField & | defaultValue (const char *value) |
Set the default value of this Field. More... | |
AggregateField & | defaultValue (bool value) |
Set the default value of this Field. More... | |
AggregateField & | defaultValue (int value) |
Set the default value of this Field. More... | |
AggregateField & | defaultValue (double value) |
Set the default value of this Field. More... | |
AggregateField & | range (double startVal, double endVal) |
Set the range of this Field. More... | |
AggregateField & | range (int startVal, int endVal) |
Set the range of this Field. More... | |
AggregateField & | validValues (const std::vector< int > &set) |
Set the valid values for this Field. More... | |
AggregateField & | validValues (const std::vector< double > &set) |
Set the valid values for this Field. More... | |
AggregateField & | validValues (const std::vector< std::string > &set) |
Set the valid values for this Field. More... | |
AggregateField & | validValues (const std::initializer_list< const char *> &set) |
Set the valid values for this Field. More... | |
AggregateField & | validValues (const std::initializer_list< int > &set) |
Set the valid values for this Field. More... | |
AggregateField & | validValues (const std::initializer_list< double > &set) |
Set the valid values for this Field. More... | |
AggregateField & | registerVerifier (std::function< bool(const Field &)> lambda) |
Registers the function object that will verify this Field's contents during the verification stage. More... | |
virtual VerifiableScalar & | registerVerifier (std::function< bool(const axom::inlet::Field &)> lambda)=0 |
Registers the function object that will verify this object's contents during the verification stage. More... | |
A wrapper class that enables constraints on groups of Fields.
|
inline |
|
virtualdefault |
|
virtual |
Called by Inlet::verify to verify the contents of this Field.
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the required status of this Field.
Set whether this Field is required, or not, to be in the input file. The default behavior is to not be required.
[in] | isRequired | Boolean value of whether Field is required |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Return the required status of this Field.
Return that this Field is required, or not, to be in the input file. The default behavior is to not be required.
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the default value of this Field.
Set the default value for the Field in the input file.
[in] | value | The default string value |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the default value of this Field.
Set the default value for the Field in the input file.
[in] | value | The default string value |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the default value of this Field.
Set the default value for the Field in the input file.
[in] | value | The default boolean value |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the default value of this Field.
Set the default value for the Field in the input file.
[in] | value | The default integer value |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the default value of this Field.
Set the default value for the Field in the input file.
[in] | value | The default double value |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the range of this Field.
Set the continuous range for the Field in the input file.
[in] | startVal | The start of the range |
[in] | endVal | The end of the range |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the range of this Field.
Set the continuous range for the Field in the input file.
[in] | startVal | The start of the range |
[in] | endVal | The end of the range |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | An vector containing the set of allowed integer values |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | An vector containing the set of allowed double values |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | A vector containing the set of allowed string values |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | An initializer list containing the set of allowed C-string values |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | An initializer list containing the valid integer values |
Implements axom::inlet::VerifiableScalar.
|
virtual |
Set the valid values for this Field.
[in] | set | An initializer list containing the valid double values |
Implements axom::inlet::VerifiableScalar.
AggregateField& axom::inlet::AggregateField::registerVerifier | ( | std::function< bool(const Field &)> | lambda | ) |
Registers the function object that will verify this Field's contents during the verification stage.
[in] | The | function object that will be called by Field::verify(). |
|
pure virtualinherited |
Registers the function object that will verify this object's contents during the verification stage.
[in] | The | function object. |