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

The base class for the node visitors. These are the types used to visit each node traversed by the diff_traversable_base::traverse() method. More...

#include <abg-comparison.h>

Inheritance diagram for diff_node_visitor:
[legend]

Public Member Functions

 diff_node_visitor ()
 Default constructor of the diff_node_visitor type.
 
 diff_node_visitor (visiting_kind k)
 Constructor of the diff_node_visitor type.
 
diffget_current_topmost_iface_diff () const
 Getter of the diff current topmost interface which is impacted by the current diff node being visited.
 
visiting_kind get_visiting_kind () const
 Getter for the visiting policy of the traversing code while invoking this visitor.
 
void or_visiting_kind (visiting_kind v)
 Setter for the visiting policy of the traversing code while invoking this visitor. This one makes a logical or between the current policy and the bitmap given in argument and assigns the current policy to the result.
 
void set_current_topmost_iface_diff (diff *)
 Setter of the diff current topmost interface which is impacted by the current diff node being visited.
 
void set_visiting_kind (visiting_kind v)
 Setter for the visiting policy of the traversing code while invoking this visitor.
 
virtual bool visit (base_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (class_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (corpus_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (diff *, bool)
 Default visitor implementation.
 
virtual bool visit (distinct_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (enum_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (function_decl_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (pointer_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (qualified_type_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (reference_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (scope_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (translation_unit_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (type_decl_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (typedef_diff *, bool)
 Default visitor implementation.
 
virtual bool visit (var_diff *, bool)
 Default visitor implementation.
 
virtual void visit_begin (corpus_diff *)
 This is called by the traversing code on a corpus_diff node just before visiting it. That is, before visiting it and its children node.
 
virtual void visit_begin (diff *)
 This is called by the traversing code on a diff node just before visiting it. That is, before visiting it and its children node.
 
virtual void visit_end (corpus_diff *)
 This is called by the traversing code on a corpus_diff node just after visiting it. That is after visiting it and its children nodes.
 
virtual void visit_end (diff *)
 This is called by the traversing code on a diff node just after visiting it. That is after visiting it and its children nodes.
 

Protected Attributes

std::unique_ptr< priv > priv_
 

Detailed Description

The base class for the node visitors. These are the types used to visit each node traversed by the diff_traversable_base::traverse() method.

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

Constructor & Destructor Documentation

◆ diff_node_visitor() [1/2]

Default constructor of the diff_node_visitor type.

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

◆ diff_node_visitor() [2/2]

Constructor of the diff_node_visitor type.

Parameters
khow the visiting has to be performed.

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

Member Function Documentation

◆ get_current_topmost_iface_diff()

diff * get_current_topmost_iface_diff ( ) const

Getter of the diff current topmost interface which is impacted by the current diff node being visited.

Returns
the current topmost interface diff impacted.

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

◆ get_visiting_kind()

visiting_kind get_visiting_kind ( ) const

Getter for the visiting policy of the traversing code while invoking this visitor.

Returns
the visiting policy used by the traversing code when invoking this visitor.

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

◆ or_visiting_kind()

void or_visiting_kind ( visiting_kind v)

Setter for the visiting policy of the traversing code while invoking this visitor. This one makes a logical or between the current policy and the bitmap given in argument and assigns the current policy to the result.

Parameters
va bitmap representing the visiting policy to or with the current policy.

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

◆ set_current_topmost_iface_diff()

void set_current_topmost_iface_diff ( diff * d)

Setter of the diff current topmost interface which is impacted by the current diff node being visited.

Parameters
dthe current topmost interface diff impacted.

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

◆ set_visiting_kind()

void set_visiting_kind ( visiting_kind v)

Setter for the visiting policy of the traversing code while invoking this visitor.

Parameters
va bit map representing the new visiting policy used by the traversing code when invoking this visitor.

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

◆ visit() [1/15]

bool visit ( base_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [2/15]

bool visit ( class_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [3/15]

bool visit ( corpus_diff * ,
bool  )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [4/15]

bool visit ( diff * ,
bool  )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [5/15]

bool visit ( distinct_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [6/15]

bool visit ( enum_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [7/15]

bool visit ( function_decl_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [8/15]

bool visit ( pointer_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [9/15]

bool visit ( qualified_type_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [10/15]

bool visit ( reference_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [11/15]

bool visit ( scope_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [12/15]

bool visit ( translation_unit_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [13/15]

bool visit ( type_decl_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [14/15]

bool visit ( typedef_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [15/15]

bool visit ( var_diff * dif,
bool pre )
virtual

Default visitor implementation.

Returns
true

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

◆ visit_begin() [1/2]

void visit_begin ( corpus_diff * )
virtual

This is called by the traversing code on a corpus_diff node just before visiting it. That is, before visiting it and its children node.

Parameters
pthe corpus_diff node to visit.

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

◆ visit_begin() [2/2]

void visit_begin ( diff * )
virtual

This is called by the traversing code on a diff node just before visiting it. That is, before visiting it and its children node.

Parameters
dthe diff node to visit.

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

◆ visit_end() [1/2]

void visit_end ( corpus_diff * )
virtual

This is called by the traversing code on a corpus_diff node just after visiting it. That is after visiting it and its children nodes.

Parameters
dthe diff node that got visited.

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

◆ visit_end() [2/2]

void visit_end ( diff * )
virtual

This is called by the traversing code on a diff node just after visiting it. That is after visiting it and its children nodes.

Parameters
dthe diff node that got visited.

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

Member Data Documentation

◆ priv_

std::unique_ptr<priv> priv_
protected

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


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