Class interface representing a SimpleTableInternal comparator (aka STI). More...
#include <arcane/core/ISimpleTableInternalComparator.h>
Public Member Functions | |
| virtual bool | compare (bool compare_dimension_too=false)=0 |
| Method allowing comparison of the values of the two STIs. | |
| virtual bool | compareElem (const String &column_name, const String &row_name)=0 |
| Method allowing comparison of a single element. Both SimpleTableInternals are represented by Refs, so they are always up to date. This method can be used during calculation, allowing values to be compared as the calculation progresses, instead of performing a final comparison at the end (it is still possible to do both). | |
| virtual bool | compareElem (Real elem, const String &column_name, const String &row_name)=0 |
| Method allowing comparison of a value with a value from the reference table. This method does not use the internal 'toCompare'. | |
| virtual void | clearComparator ()=0 |
| Method allowing the clearing of comparison arrays and regular expressions. Does not affect the STIs. | |
| virtual bool | addColumnForComparing (const String &column_name)=0 |
| Method allowing the addition of a column to the list of columns to compare. | |
| virtual bool | addRowForComparing (const String &row_name)=0 |
| Method allowing the addition of a row to the list of rows to compare. | |
| virtual void | isAnArrayExclusiveColumns (bool is_exclusive)=0 |
| Method allowing definition of whether the column array represents columns to include in the comparison (false/default) or columns to exclude from the comparison (true). | |
| virtual void | isAnArrayExclusiveRows (bool is_exclusive)=0 |
| Method allowing definition of whether the row array represents rows to include in the comparison (false/default) or rows to exclude from the comparison (true). | |
| virtual void | editRegexColumns (const String ®ex_column)=0 |
| Method allowing the addition of a regular expression to determine the columns to compare. | |
| virtual void | editRegexRows (const String ®ex_row)=0 |
| Method allowing the addition of a regular expression to determine the rows to compare. | |
| virtual void | isARegexExclusiveColumns (bool is_exclusive)=0 |
| Method allowing specification that the regular expression excludes columns instead of including them. | |
| virtual void | isARegexExclusiveRows (bool is_exclusive)=0 |
| Method allowing specification that the regular expression excludes rows instead of including them. | |
| virtual bool | addEpsilonColumn (const String &column_name, Real epsilon)=0 |
| Method allowing the definition of an epsilon for a given column. This epsilon must be positive to be considered. If there is a conflict with a row epsilon (defined with addEpsilonRow()), the largest epsilon is taken into account. | |
| virtual bool | addEpsilonRow (const String &row_name, Real epsilon)=0 |
| Method allowing the definition of an epsilon for a given row. This epsilon must be positive to be considered. If there is a conflict with a column epsilon (defined with addEpsilonColumn()), the largest epsilon is taken into account. | |
| virtual Ref< SimpleTableInternal > | internalRef ()=0 |
| Method allowing retrieval of a reference to the used "reference" SimpleTableInternal object. | |
| virtual void | setInternalRef (const Ref< SimpleTableInternal > &simple_table_internal)=0 |
| Method allowing definition of a reference to a "reference" SimpleTableInternal. | |
| virtual Ref< SimpleTableInternal > | internalToCompare ()=0 |
| Method allowing retrieval of a reference to the used "to compare" SimpleTableInternal object. | |
| virtual void | setInternalToCompare (const Ref< SimpleTableInternal > &simple_table_internal)=0 |
| Method allowing definition of a reference to the "to compare" SimpleTableInternal. | |
Class interface representing a SimpleTableInternal comparator (aka STI).
The principle is to compare the values of one STI with the values of a reference STI, using an epsilon representing the acceptable error margin.
There are two ways to configure this comparator:
You can add row/column names to these arrays, specify whether these rows/columns should be included in the comparison, or, conversely, if they should be excluded from the comparison.
The same applies to regular expressions: you add a row/column regular expression and specify whether these expressions include or exclude rows/columns.
If both types of methods are defined, the arrays take precedence over the regular expressions: first, we check for the presence of the row/column name in the corresponding array.
If the name is present, we include/exclude this row/column from the comparison. If the name is absent but a regular expression is defined, we search for a match within it.
If neither type is defined (empty array and empty regular expression), all rows/columns are included in the comparison.
Definition at line 62 of file ISimpleTableInternalComparator.h.
|
pure virtual |
Method allowing the addition of a column to the list of columns to compare.
| column_name | The name of the column to compare. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the definition of an epsilon for a given column. This epsilon must be positive to be considered. If there is a conflict with a row epsilon (defined with addEpsilonRow()), the largest epsilon is taken into account.
| column_name | The name of the column where the epsilon will be taken into account. |
| epsilon | The epsilon error margin. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the definition of an epsilon for a given row. This epsilon must be positive to be considered. If there is a conflict with a column epsilon (defined with addEpsilonColumn()), the largest epsilon is taken into account.
| row_name | The name of the row where the epsilon will be taken into account. |
| epsilon | The epsilon error margin. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the addition of a row to the list of rows to compare.
| row_name | The name of the row to compare. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the clearing of comparison arrays and regular expressions. Does not affect the STIs.
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing comparison of the values of the two STIs.
| compare_dimension_too | If the STI dimensions must be compared. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing comparison of a single element. Both SimpleTableInternals are represented by Refs, so they are always up to date. This method can be used during calculation, allowing values to be compared as the calculation progresses, instead of performing a final comparison at the end (it is still possible to do both).
| column_name | The name of the column where the element is located. |
| row_name | The name of the row where the element is located. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing comparison of a value with a value from the reference table. This method does not use the internal 'toCompare'.
| elem | The value to compare. |
| column_name | The name of the column where the reference element is located. |
| row_name | The name of the row where the reference element is located. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the addition of a regular expression to determine the columns to compare.
| regex_column | The regular expression (ECMAScript format). |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing the addition of a regular expression to determine the rows to compare.
| regex_row | The regular expression (ECMAScript format). |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing retrieval of a reference to the used "reference" SimpleTableInternal object.
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing retrieval of a reference to the used "to compare" SimpleTableInternal object.
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing definition of whether the column array represents columns to include in the comparison (false/default) or columns to exclude from the comparison (true).
| is_exclusive | true if the columns must be excluded. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing definition of whether the row array represents rows to include in the comparison (false/default) or rows to exclude from the comparison (true).
| is_exclusive | true if the rows must be excluded. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing specification that the regular expression excludes columns instead of including them.
| is_exclusive | If the regular expression is exclusionary. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing specification that the regular expression excludes rows instead of including them.
| is_exclusive | If the regular expression is exclusionary. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing definition of a reference to a "reference" SimpleTableInternal.
| simple_table_internal | The reference to a SimpleTableInternal. |
Implemented in Arcane::SimpleTableInternalComparator.
|
pure virtual |
Method allowing definition of a reference to the "to compare" SimpleTableInternal.
| simple_table_internal | The reference to a SimpleTableInternal. |
Implemented in Arcane::SimpleTableInternalComparator.