libabigail
Loading...
Searching...
No Matches
diff_maps Class Reference

This type contains maps. Each map associates a type name to a diff of that type. Not all kinds of diffs are present; only those that carry leaf changes are, for now. More...

#include <abg-comparison.h>

Public Member Functions

 diff_maps ()
 Default constructor of the diff_maps type.
 
string_diff_ptr_mapget_array_diff_map ()
 Getter of the map that contains array type diffs.
 
const string_diff_ptr_mapget_array_diff_map () const
 Getter of the map that contains array type diffs.
 
string_diff_ptr_mapget_class_diff_map ()
 Getter of the map that contains class type diffs.
 
const string_diff_ptr_mapget_class_diff_map () const
 Getter of the map that contains class type diffs.
 
string_diff_ptr_mapget_distinct_diff_map ()
 Getter of the map that contains distinct diffs.
 
const string_diff_ptr_mapget_distinct_diff_map () const
 Getter of the map that contains distinct diffs.
 
string_diff_ptr_mapget_enum_diff_map ()
 Getter of the map that contains enum type diffs.
 
const string_diff_ptr_mapget_enum_diff_map () const
 Getter of the map that contains enum type diffs.
 
string_diff_ptr_mapget_fn_parm_diff_map ()
 Getter of the map that contains function parameter diffs.
 
const string_diff_ptr_mapget_fn_parm_diff_map () const
 Getter of the map that contains function parameter diffs.
 
string_diff_ptr_mapget_function_decl_diff_map ()
 Getter of the map that contains function decl diffs.
 
const string_diff_ptr_mapget_function_decl_diff_map () const
 Getter of the map that contains function decl diffs.
 
string_diff_ptr_mapget_function_type_diff_map ()
 Getter of the map that contains function type diffs.
 
const string_diff_ptr_mapget_function_type_diff_map () const
 Getter of the map that contains function type diffs.
 
string_diff_ptr_mapget_reference_diff_map ()
 Getter of the map that contains reference type diffs.
 
const string_diff_ptr_mapget_reference_diff_map () const
 Getter of the map that contains reference type diffs.
 
string_diff_ptr_mapget_subrange_diff_map ()
 Getter of the map that contains subrange type diffs.
 
const string_diff_ptr_mapget_subrange_diff_map () const
 Getter of the map that contains subrange type diffs.
 
string_diff_ptr_mapget_type_decl_diff_map ()
 Getter of the map that contains basic type diffs.
 
const string_diff_ptr_mapget_type_decl_diff_map () const
 Getter of the map that contains basic type diffs.
 
string_diff_ptr_mapget_typedef_diff_map ()
 Getter of the map that contains typedef type diffs.
 
const string_diff_ptr_mapget_typedef_diff_map () const
 Getter of the map that contains typedef type diffs.
 
string_diff_ptr_mapget_union_diff_map ()
 Getter of the map that contains union type diffs.
 
const string_diff_ptr_mapget_union_diff_map () const
 Getter of the map that contains union type diffs.
 
string_diff_ptr_mapget_var_decl_diff_map ()
 Getter of the map that contains var decl diffs.
 
const string_diff_ptr_mapget_var_decl_diff_map () const
 Getter of the map that contains var decl diffs.
 
bool insert_diff_node (const diff *d, const type_or_decl_base_sptr &impacted_iface)
 Insert a new diff node into the current instance of diff_maps.
 
artifact_sptr_set_typelookup_impacted_interfaces (const diff *d) const
 Lookup the interfaces that are impacted by a given leaf diff node.
 

Detailed Description

This type contains maps. Each map associates a type name to a diff of that type. Not all kinds of diffs are present; only those that carry leaf changes are, for now.

Definition at line 517 of file abg-comparison.h.

Constructor & Destructor Documentation

◆ diff_maps()

diff_maps ( )

Default constructor of the diff_maps type.

Definition at line 8365 of file abg-comparison.cc.

Member Function Documentation

◆ get_array_diff_map() [1/2]

string_diff_ptr_map & get_array_diff_map ( )

Getter of the map that contains array type diffs.

Returns
the map that contains array type diffs.

Definition at line 8466 of file abg-comparison.cc.

◆ get_array_diff_map() [2/2]

const string_diff_ptr_map & get_array_diff_map ( ) const

Getter of the map that contains array type diffs.

Returns
the map that contains array type diffs.

Definition at line 8459 of file abg-comparison.cc.

◆ get_class_diff_map() [1/2]

string_diff_ptr_map & get_class_diff_map ( )

Getter of the map that contains class type diffs.

Returns
the map that contains class type diffs.

Definition at line 8410 of file abg-comparison.cc.

◆ get_class_diff_map() [2/2]

const string_diff_ptr_map & get_class_diff_map ( ) const

Getter of the map that contains class type diffs.

Returns
the map that contains class type diffs.

Definition at line 8403 of file abg-comparison.cc.

◆ get_distinct_diff_map() [1/2]

string_diff_ptr_map & get_distinct_diff_map ( )

Getter of the map that contains distinct diffs.

Returns
the map that contains distinct diffs.

Definition at line 8550 of file abg-comparison.cc.

◆ get_distinct_diff_map() [2/2]

const string_diff_ptr_map & get_distinct_diff_map ( ) const

Getter of the map that contains distinct diffs.

Returns
the map that contains distinct diffs.

Definition at line 8543 of file abg-comparison.cc.

◆ get_enum_diff_map() [1/2]

string_diff_ptr_map & get_enum_diff_map ( )

Getter of the map that contains enum type diffs.

Returns
the map that contains enum type diffs.

Definition at line 8396 of file abg-comparison.cc.

◆ get_enum_diff_map() [2/2]

const string_diff_ptr_map & get_enum_diff_map ( ) const

Getter of the map that contains enum type diffs.

Returns
the map that contains enum type diffs.

Definition at line 8389 of file abg-comparison.cc.

◆ get_fn_parm_diff_map() [1/2]

string_diff_ptr_map & get_fn_parm_diff_map ( )

Getter of the map that contains function parameter diffs.

Returns
the map that contains function parameter diffs.

Definition at line 8494 of file abg-comparison.cc.

◆ get_fn_parm_diff_map() [2/2]

const string_diff_ptr_map & get_fn_parm_diff_map ( ) const

Getter of the map that contains function parameter diffs.

Returns
the map that contains function parameter diffs.

Definition at line 8487 of file abg-comparison.cc.

◆ get_function_decl_diff_map() [1/2]

string_diff_ptr_map & get_function_decl_diff_map ( )

Getter of the map that contains function decl diffs.

Returns
the map that contains function decl diffs.

Definition at line 8522 of file abg-comparison.cc.

◆ get_function_decl_diff_map() [2/2]

const string_diff_ptr_map & get_function_decl_diff_map ( ) const

Getter of the map that contains function decl diffs.

Returns
the map that contains function decl diffs.

Definition at line 8515 of file abg-comparison.cc.

◆ get_function_type_diff_map() [1/2]

string_diff_ptr_map & get_function_type_diff_map ( )

Getter of the map that contains function type diffs.

Returns
the map that contains function type diffs.

Definition at line 8508 of file abg-comparison.cc.

◆ get_function_type_diff_map() [2/2]

const string_diff_ptr_map & get_function_type_diff_map ( ) const

Getter of the map that contains function type diffs.

Returns
the map that contains function type diffs.

Definition at line 8501 of file abg-comparison.cc.

◆ get_reference_diff_map() [1/2]

string_diff_ptr_map & get_reference_diff_map ( )

Getter of the map that contains reference type diffs.

Returns
the map that contains reference type diffs.

Definition at line 8480 of file abg-comparison.cc.

◆ get_reference_diff_map() [2/2]

const string_diff_ptr_map & get_reference_diff_map ( ) const

Getter of the map that contains reference type diffs.

Returns
the map that contains reference type diffs.

Definition at line 8473 of file abg-comparison.cc.

◆ get_subrange_diff_map() [1/2]

string_diff_ptr_map & get_subrange_diff_map ( )

Getter of the map that contains subrange type diffs.

Returns
the map that contains subrange type diffs.

Definition at line 8452 of file abg-comparison.cc.

◆ get_subrange_diff_map() [2/2]

const string_diff_ptr_map & get_subrange_diff_map ( ) const

Getter of the map that contains subrange type diffs.

Returns
the map that contains subrange type diffs.

Definition at line 8445 of file abg-comparison.cc.

◆ get_type_decl_diff_map() [1/2]

string_diff_ptr_map & get_type_decl_diff_map ( )

Getter of the map that contains basic type diffs.

Returns
the map that contains basic type diffs.

Definition at line 8382 of file abg-comparison.cc.

◆ get_type_decl_diff_map() [2/2]

const string_diff_ptr_map & get_type_decl_diff_map ( ) const

Getter of the map that contains basic type diffs.

Returns
the map that contains basic type diffs.

Definition at line 8375 of file abg-comparison.cc.

◆ get_typedef_diff_map() [1/2]

string_diff_ptr_map & get_typedef_diff_map ( )

Getter of the map that contains typedef type diffs.

Returns
the map that contains typedef type diffs.

Definition at line 8438 of file abg-comparison.cc.

◆ get_typedef_diff_map() [2/2]

const string_diff_ptr_map & get_typedef_diff_map ( ) const

Getter of the map that contains typedef type diffs.

Returns
the map that contains typedef type diffs.

Definition at line 8431 of file abg-comparison.cc.

◆ get_union_diff_map() [1/2]

string_diff_ptr_map & get_union_diff_map ( )

Getter of the map that contains union type diffs.

Returns
the map that contains union type diffs.

Definition at line 8424 of file abg-comparison.cc.

◆ get_union_diff_map() [2/2]

const string_diff_ptr_map & get_union_diff_map ( ) const

Getter of the map that contains union type diffs.

Returns
the map that contains union type diffs.

Definition at line 8417 of file abg-comparison.cc.

◆ get_var_decl_diff_map() [1/2]

string_diff_ptr_map & get_var_decl_diff_map ( )

Getter of the map that contains var decl diffs.

Returns
the map that contains var decl diffs.

Definition at line 8536 of file abg-comparison.cc.

◆ get_var_decl_diff_map() [2/2]

const string_diff_ptr_map & get_var_decl_diff_map ( ) const

Getter of the map that contains var decl diffs.

Returns
the map that contains var decl diffs.

Definition at line 8529 of file abg-comparison.cc.

◆ insert_diff_node()

bool insert_diff_node ( const diff * dif,
const type_or_decl_base_sptr & impacted_iface )

Insert a new diff node into the current instance of diff_maps.

Parameters
difthe new diff node to insert into the diff_maps.
impacted_ifacethe interface (global function or variable) currently being analysed that led to analysing the diff node dif. In other words, this is the interface impacted by the diff node dif. Note that this can be nil in cases where we are directly analysing changes to a type that is not reachable from any global function or variable.
Returns
true iff the diff node could be added to the current instance of diff_maps.

Definition at line 8567 of file abg-comparison.cc.

◆ lookup_impacted_interfaces()

artifact_sptr_set_type * lookup_impacted_interfaces ( const diff * d) const

Lookup the interfaces that are impacted by a given leaf diff node.

Parameters
dthe diff node to consider.
Returns
the set of artifacts impacted by d.

Definition at line 8631 of file abg-comparison.cc.


The documentation for this class was generated from the following files: