Definition at line 1339 of file abg-ir-priv.h.
◆ comparison_started() [1/2]
Test if a pair of class_or_union is being currently compared.
- Parameters
-
first | the first class or union (of the pair) to test for. |
second | the second class or union (of the pair) to test for. |
- Returns
- true if the pair {
first
, second}
is being compared, false otherwise.
Definition at line 1486 of file abg-ir-priv.h.
◆ comparison_started() [2/2]
Test if a pair of class_or_union is being currently compared.
- Parameters
-
first | the first class or union (of the pair) to test for. |
second | the second class or union (of the pair) to test for. |
- Returns
- true if the pair {
first
, second}
is being compared, false otherwise.
Definition at line 1506 of file abg-ir-priv.h.
◆ mark_as_being_compared() [1/3]
Mark a pair of classes or unions as being currently compared using the class_or_union== operator.
Note that this marking business is to avoid infinite loop when comparing a pair of classes or unions. If via the comparison of a data member or a member function a recursive re-comparison of the class or union is attempted, the marking process helps to detect that infinite loop possibility and avoid it.
- Parameters
-
first | the class or union (of the pair) to mark as being currently compared. |
second | the second class or union (of the pair) to mark as being currently compared. |
Definition at line 1383 of file abg-ir-priv.h.
◆ mark_as_being_compared() [2/3]
Mark a pair of classes or unions as being currently compared using the class_or_union== operator.
Note that this marking business is to avoid infinite loop when comparing a pair of classes or unions. If via the comparison of a data member or a member function a recursive re-comparison of the class or union is attempted, the marking process helps to detect that infinite loop possibility and avoid it.
- Parameters
-
first | the class or union (of the pair) to mark as being currently compared. |
second | the second class or union (of the pair) to mark as being currently compared. |
Definition at line 1407 of file abg-ir-priv.h.
◆ mark_as_being_compared() [3/3]
void mark_as_being_compared |
( |
const class_or_union_sptr & |
first, |
|
|
const class_or_union_sptr & |
second |
|
) |
| const |
|
inline |
Mark a pair of classes or unions as being currently compared using the class_or_union== operator.
Note that this marking business is to avoid infinite loop when comparing a pair of classes or unions. If via the comparison of a data member or a member function a recursive re-comparison of the class or union is attempted, the marking process helps to detect that infinite loop possibility and avoid it.
- Parameters
-
first | the class or union (of the pair) to mark as being currently compared. |
second | the second class or union (of the pair) to mark as being currently compared. |
Definition at line 1426 of file abg-ir-priv.h.
◆ unmark_as_being_compared() [1/2]
If a pair of class_or_union has been previously marked as being compared – via an invocation of mark_as_being_compared() this method unmarks it. Otherwise is has no effect.
This method is not thread safe because it uses the static data member classes_being_compared_. If you wish to use it in a multi-threaded environment you should probably protect the access to that static data member with a mutex or somesuch.
- Parameters
-
Definition at line 1445 of file abg-ir-priv.h.
◆ unmark_as_being_compared() [2/2]
If a pair of class_or_union has been previously marked as being compared – via an invocation of mark_as_being_compared() this method unmarks it. Otherwise is has no effect.
This method is not thread safe because it uses the static data member classes_being_compared_. If you wish to use it in a multi-threaded environment you should probably protect the access to that static data member with a mutex or somesuch.
- Parameters
-
Definition at line 1469 of file abg-ir-priv.h.
The documentation for this struct was generated from the following file: