|
Nektar++
|
#include <MetricEigenvalue.h>
Static Public Member Functions | |
| static MetricSharedPtr | create (TiXmlElement *metric, bool generate) |
Static Public Member Functions inherited from Nektar::MetricRegex | |
| static MetricSharedPtr | create (TiXmlElement *metric, bool generate) |
Static Public Attributes | |
| static std::string | type |
| static std::string | defaultTolerance = "1e-03" |
Static Public Attributes inherited from Nektar::MetricRegex | |
| static std::string | type |
Protected Member Functions | |
| MetricEigenvalue (TiXmlElement *metric, bool generate) | |
| void | v_Generate (std::istream &pStdout, std::istream &pStderr) override |
| Virtual function to generate the metric. Should be redefined in derived classes. More... | |
Protected Member Functions inherited from Nektar::MetricRegex | |
| MetricRegex (TiXmlElement *metric, bool generate) | |
| Constructor. More... | |
| bool | v_Test (std::istream &pStdout, std::istream &pStderr) override |
| Test output against a regex expression and set of matches. More... | |
| void | v_Generate (std::istream &pStdout, std::istream &pStderr) override |
| Test output against a regex expression and set of matches. More... | |
| virtual bool | v_Test (std::istream &pStdout, std::istream &pStderr)=0 |
| Virtual function to test the metric. Should be redefined in derived classes. More... | |
| virtual void | v_Generate (std::istream &pStdout, std::istream &pSrderr)=0 |
| Virtual function to generate the metric. Should be redefined in derived classes. More... | |
Protected Attributes | |
| std::string | m_varTolerance |
Protected Attributes inherited from Nektar::MetricRegex | |
| std::regex | m_regex |
| Storage for the boost regex. More... | |
| std::vector< std::vector< MetricRegexFieldValue > > | m_matches |
| Stores the multiple matches defined in each <MATCH> tag. More... | |
| bool | m_unordered = false |
| If true, regex matches may be in any order in output. More... | |
| bool | m_useStderr = false |
| If true, use stderr for testing/generation instead of stdout. More... | |
Protected Attributes inherited from Nektar::Metric | |
| int | m_id |
| Stores the ID of this metric. More... | |
| std::string | m_type |
| Stores the type of this metric (uppercase). More... | |
| bool | m_generate |
| Determines whether to generate this metric or not. More... | |
| bool | m_average = false |
| Indicates whether a metric supports averaging results from multiple runs. More... | |
| TiXmlElement * | m_metric |
| Pointer to XML structure containing metric definition. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Nektar::MetricRegex | |
| ~MetricRegex () override | |
Public Member Functions inherited from Nektar::Metric | |
| Metric (TiXmlElement *metric, bool generate) | |
| Constructor. More... | |
| virtual | ~Metric ()=default |
| bool | Test (std::istream &pStdout, std::istream &pStderr) |
Calls a metric's v_Test function (or v_Generate if m_generate). More... | |
| void | Generate (std::istream &pStdout, std::istream &pStderr) |
| std::string | GetType () |
| Return metric type. More... | |
| int | GetID () |
| Return metric ID. More... | |
| bool | SupportsAverage () const |
| Return whether this metric supports averaging results from multiple runs. More... | |
Definition at line 43 of file MetricEigenvalue.h.
|
protected |
Definition at line 47 of file MetricEigenvalue.cpp.
References ASSERTL0, Nektar::EmptyString(), Nektar::Metric::m_generate, Nektar::MetricRegex::m_matches, Nektar::MetricRegex::m_regex, Nektar::MetricRegexFieldValue::m_tolerance, Nektar::MetricRegex::m_unordered, Nektar::MetricRegexFieldValue::m_useTolerance, Nektar::MetricRegexFieldValue::m_value, and m_varTolerance.
Referenced by create().
|
inlinestatic |
Definition at line 46 of file MetricEigenvalue.h.
References MetricEigenvalue().
|
overrideprotectedvirtual |
Virtual function to generate the metric. Should be redefined in derived classes.
| pStdout | Reference to test output stream. |
| pSrderr | Reference to test error stream. |
Implements Nektar::Metric.
Definition at line 106 of file MetricEigenvalue.cpp.
References ASSERTL0, defaultTolerance, Nektar::MetricRegex::m_matches, Nektar::Metric::m_metric, m_varTolerance, and Nektar::MetricRegex::v_Generate().
|
static |
Definition at line 52 of file MetricEigenvalue.h.
Referenced by v_Generate().
|
protected |
Definition at line 57 of file MetricEigenvalue.h.
Referenced by MetricEigenvalue(), and v_Generate().
|
static |
Definition at line 51 of file MetricEigenvalue.h.