Public Member Functions | |
| SimpleTableInternalComparator (const Ref< SimpleTableInternal > &sti_ref, const Ref< SimpleTableInternal > &sti_to_compare) | |
| bool | compare (bool compare_dimension_too) override |
| Method allowing comparison of the values of the two STIs. | |
| bool | compareElem (const String &column_name, const String &row_name) override |
| 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). | |
| bool | compareElem (Real elem, const String &column_name, const String &row_name) override |
| Method allowing comparison of a value with a value from the reference table. This method does not use the internal 'toCompare'. | |
| void | clearComparator () override |
| Method allowing the clearing of comparison arrays and regular expressions. Does not affect the STIs. | |
| bool | addColumnForComparing (const String &column_name) override |
| Method allowing the addition of a column to the list of columns to compare. | |
| bool | addRowForComparing (const String &row_name) override |
| Method allowing the addition of a row to the list of rows to compare. | |
| void | isAnArrayExclusiveColumns (bool is_exclusive) override |
| 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). | |
| void | isAnArrayExclusiveRows (bool is_exclusive) override |
| 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). | |
| void | editRegexColumns (const String ®ex_column) override |
| Method allowing the addition of a regular expression to determine the columns to compare. | |
| void | editRegexRows (const String ®ex_row) override |
| Method allowing the addition of a regular expression to determine the rows to compare. | |
| void | isARegexExclusiveColumns (bool is_exclusive) override |
| Method allowing specification that the regular expression excludes columns instead of including them. | |
| void | isARegexExclusiveRows (bool is_exclusive) override |
| Method allowing specification that the regular expression excludes rows instead of including them. | |
| bool | addEpsilonColumn (const String &column_name, Real epsilon) override |
| 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. | |
| bool | addEpsilonRow (const String &row_name, Real epsilon) override |
| 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. | |
| Ref< SimpleTableInternal > | internalRef () override |
| Method allowing retrieval of a reference to the used "reference" SimpleTableInternal object. | |
| void | setInternalRef (const Ref< SimpleTableInternal > &simple_table_internal) override |
| Method allowing definition of a reference to a "reference" SimpleTableInternal. | |
| Ref< SimpleTableInternal > | internalToCompare () override |
| Method allowing retrieval of a reference to the used "to compare" SimpleTableInternal object. | |
| void | setInternalToCompare (const Ref< SimpleTableInternal > &simple_table_internal) override |
| Method allowing definition of a reference to the "to compare" SimpleTableInternal. | |
Protected Member Functions | |
| bool | _exploreColumn (const String &column_name) |
| Method to determine whether the column named column_name should be explored or not. | |
| bool | _exploreRows (const String &row_name) |
| Method to determine whether the row named column_name should be explored or not. | |
Definition at line 36 of file SimpleTableInternalComparator.h.
|
inline |
Definition at line 41 of file SimpleTableInternalComparator.h.
|
inline |
Definition at line 59 of file SimpleTableInternalComparator.h.
|
protected |
Method to determine whether the column named column_name should be explored or not.
| column_name | The name of the column to check. |
Definition at line 267 of file SimpleTableInternalComparator.cc.
References Arcane::String::localstr().
Referenced by compare().
|
protected |
Method to determine whether the row named column_name should be explored or not.
| column_name | The name of the row to check. |
Definition at line 305 of file SimpleTableInternalComparator.cc.
References Arcane::String::localstr().
Referenced by compare().
|
overridevirtual |
Method allowing the addition of a column to the list of columns to compare.
| column_name | The name of the column to compare. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 160 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 209 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 216 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing the addition of a row to the list of rows to compare.
| row_name | The name of the row to compare. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 166 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing the clearing of comparison arrays and regular expressions. Does not affect the STIs.
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 144 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing comparison of the values of the two STIs.
| compare_dimension_too | If the STI dimensions must be compared. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 32 of file SimpleTableInternalComparator.cc.
References _exploreColumn(), _exploreRows(), Arcane::math::isNearlyEqual(), Arcane::math::isNearlyEqualWithEpsilon(), and Arcane::math::max().
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 105 of file SimpleTableInternalComparator.cc.
References compareElem().
Referenced by compareElem().
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 116 of file SimpleTableInternalComparator.cc.
References Arcane::math::isNearlyEqual(), Arcane::math::isNearlyEqualWithEpsilon(), and Arcane::math::max().
|
overridevirtual |
Method allowing the addition of a regular expression to determine the columns to compare.
| regex_column | The regular expression (ECMAScript format). |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 184 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing the addition of a regular expression to determine the rows to compare.
| regex_row | The regular expression (ECMAScript format). |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 189 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing retrieval of a reference to the used "reference" SimpleTableInternal object.
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 226 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing retrieval of a reference to the used "to compare" SimpleTableInternal object.
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 241 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 173 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
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. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 178 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing specification that the regular expression excludes columns instead of including them.
| is_exclusive | If the regular expression is exclusionary. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 195 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing specification that the regular expression excludes rows instead of including them.
| is_exclusive | If the regular expression is exclusionary. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 200 of file SimpleTableInternalComparator.cc.
|
overridevirtual |
Method allowing definition of a reference to a "reference" SimpleTableInternal.
| simple_table_internal | The reference to a SimpleTableInternal. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 232 of file SimpleTableInternalComparator.cc.
References ARCANE_FATAL, and Arcane::RefImpl< InstanceType, RefClassType, ImplTagId >::isNull().
|
overridevirtual |
Method allowing definition of a reference to the "to compare" SimpleTableInternal.
| simple_table_internal | The reference to a SimpleTableInternal. |
Implements Arcane::ISimpleTableInternalComparator.
Definition at line 247 of file SimpleTableInternalComparator.cc.
References ARCANE_FATAL, and Arcane::RefImpl< InstanceType, RefClassType, ImplTagId >::isNull().
|
protected |
Definition at line 129 of file SimpleTableInternalComparator.h.
Definition at line 132 of file SimpleTableInternalComparator.h.
Definition at line 133 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 130 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 127 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 124 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 121 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 123 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 120 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 126 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 117 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 118 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 114 of file SimpleTableInternalComparator.h.
|
protected |
Definition at line 115 of file SimpleTableInternalComparator.h.