|
libabigail
|
The abstraction of a range of offsets in which a member of a type might get inserted. More...
#include <abg-suppression.h>
Classes | |
| class | boundary |
| The abstraction of the boundary of an insertion_range, in the context of a type_suppression. More... | |
| class | fn_call_expr_boundary |
| An insertion_range boundary that is expressed as function call expression. The (integer) value of that expression is usually a bit offset. More... | |
| class | integer_boundary |
| An insertion_range boundary that is expressed as an integer value. That integer value is usually a bit offset. More... | |
| class | named_boundary |
| An insertion_range boundary that is expressed as a named constant that is to be evaluated later in the context of a given type and resolved to a bit offset. More... | |
Public Types | |
| typedef shared_ptr< boundary > | boundary_sptr |
| Convenience typedef for a shared_ptr to boundary. More... | |
| typedef shared_ptr< fn_call_expr_boundary > | fn_call_expr_boundary_sptr |
| Convenience typedef for a shared_ptr to a fn_call_expr_boundary. More... | |
| typedef shared_ptr< integer_boundary > | integer_boundary_sptr |
| Convenience typedef for a shared_ptr to a integer_boundary. More... | |
| typedef shared_ptr< named_boundary > | named_boundary_sptr |
| Convenience typedef for a shared_ptr to a named_boundary. More... | |
Public Member Functions | |
| insertion_range () | |
| Default Constructor of type_suppression::insertion_range. More... | |
| insertion_range (boundary_sptr begin, boundary_sptr end) | |
| Constructor of type_suppression::insertion_range. More... | |
| boundary_sptr | begin () const |
| Getter for the beginning of the range. More... | |
| boundary_sptr | end () const |
| Getter for the end of the range. More... | |
Static Public Member Functions | |
| static bool | boundary_value_is_end (uint64_t value) |
| Test if a given value supposed to be inside an insertion range represents the end of the range. More... | |
| static insertion_range::fn_call_expr_boundary_sptr | create_fn_call_expr_boundary (ini::function_call_expr_sptr) |
| Create a function call expression boundary. More... | |
| static insertion_range::fn_call_expr_boundary_sptr | create_fn_call_expr_boundary (const string &) |
| Create a function call expression boundary. More... | |
| static insertion_range::integer_boundary_sptr | create_integer_boundary (int value) |
| Create an integer boundary. More... | |
| static insertion_range::named_boundary_sptr | create_named_boundary (const string &) |
| Create a named boundary. More... | |
| static bool | eval_boundary (const boundary_sptr boundary, const class_or_union *context, uint64_t &value) |
| Evaluate an insertion range boundary to get a resulting integer value. More... | |
The abstraction of a range of offsets in which a member of a type might get inserted.
Definition at line 365 of file abg-suppression.h.
| typedef shared_ptr<boundary> boundary_sptr |
Convenience typedef for a shared_ptr to boundary.
Definition at line 375 of file abg-suppression.h.
| typedef shared_ptr<fn_call_expr_boundary> fn_call_expr_boundary_sptr |
Convenience typedef for a shared_ptr to a fn_call_expr_boundary.
Definition at line 385 of file abg-suppression.h.
| typedef shared_ptr<integer_boundary> integer_boundary_sptr |
Convenience typedef for a shared_ptr to a integer_boundary.
Definition at line 381 of file abg-suppression.h.
| typedef shared_ptr<named_boundary> named_boundary_sptr |
Convenience typedef for a shared_ptr to a named_boundary.
Definition at line 389 of file abg-suppression.h.
| insertion_range | ( | ) |
Default Constructor of type_suppression::insertion_range.
Definition at line 1448 of file abg-suppression.cc.
| insertion_range | ( | boundary_sptr | begin, |
| boundary_sptr | end | ||
| ) |
Constructor of type_suppression::insertion_range.
| begin | the start of the range. A range boundary that is an instance of interger_boundary with a negative value means the maximum possible value. |
| end | the end of the range. A range boundary that is an instance of interger_boundary with a negative value means the maximum possible value. |
Definition at line 1461 of file abg-suppression.cc.
| type_suppression::insertion_range::boundary_sptr begin | ( | ) | const |
Getter for the beginning of the range.
Definition at line 1472 of file abg-suppression.cc.
|
static |
Test if a given value supposed to be inside an insertion range represents the end of the range.
| value | the value to test for. |
value represents the end of the insertion range. Definition at line 1666 of file abg-suppression.cc.
|
static |
Create a function call expression boundary.
The return value of this function is to be used as a boundary for an instance of type_suppression::insertion_range. The value of that boundary is actually a function call expression that itself evalutates to an integer value, in the context of a class_decl.
| expr | the function call expression to create the boundary from. |
Definition at line 1509 of file abg-suppression.cc.
|
static |
Create a function call expression boundary.
The return value of this function is to be used as a boundary for an instance of type_suppression::insertion_range. The value of that boundary is actually a function call expression that itself evalutates to an integer value, in the context of a class_decl.
| s | a string representing the expression the function call expression to create the boundary from. |
Definition at line 1525 of file abg-suppression.cc.
|
static |
Create an integer boundary.
The return value of this function is to be used as a boundary for an instance of type_suppression::insertion_range. That boundary evaluates to an integer value.
| value | the value of the integer boundary. |
Definition at line 1494 of file abg-suppression.cc.
|
static |
Create a named boundary.
The return value is to be used as a boundary for an instance of type_suppression::insertion_range. The value of that boundary is a named constant that is to be evaluated to an integer value, in the context of a class_decl. That evaluate is performed by the function type_suppression::insertion_range::eval_boundary().
| name | the name of the boundary. |
Definition at line 1547 of file abg-suppression.cc.
| type_suppression::insertion_range::boundary_sptr end | ( | ) | const |
Getter for the end of the range.
Definition at line 1481 of file abg-suppression.cc.
|
static |
Evaluate an insertion range boundary to get a resulting integer value.
| boundary | the boundary to evaluate. |
| context | the context of evualuation. It's a class_decl to take into account during the evaluation, if there is a need for it. |
value contains the resulting value. Definition at line 1565 of file abg-suppression.cc.
1.8.10