libabigail
Public Member Functions | Protected Attributes | List of all members
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. More...
 
 diff_node_visitor (visiting_kind k)
 Constructor of the diff_node_visitor type. More...
 
diffget_current_topmost_iface_diff () const
 Getter of the diff current topmost interface which is impacted by the current diff node being visited. More...
 
visiting_kind get_visiting_kind () const
 Getter for the visiting policy of the traversing code while invoking this visitor. More...
 
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. More...
 
void set_current_topmost_iface_diff (diff *)
 Setter of the diff current topmost interface which is impacted by the current diff node being visited. More...
 
void set_visiting_kind (visiting_kind v)
 Setter for the visiting policy of the traversing code while invoking this visitor. More...
 
virtual bool visit (base_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (class_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (corpus_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (distinct_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (enum_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (function_decl_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (pointer_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (qualified_type_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (reference_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (scope_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (translation_unit_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (type_decl_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (typedef_diff *, bool)
 Default visitor implementation. More...
 
virtual bool visit (var_diff *, bool)
 Default visitor implementation. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 

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 2786 of file abg-comparison.h.

Constructor & Destructor Documentation

◆ diff_node_visitor() [1/2]

Default constructor of the diff_node_visitor type.

Definition at line 12022 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 12031 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 12077 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 12041 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 12061 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 12069 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 12050 of file abg-comparison.cc.

◆ visit() [1/15]

bool visit ( base_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [2/15]

bool visit ( class_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [3/15]

bool visit ( corpus_diff ,
bool   
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [4/15]

bool visit ( diff ,
bool   
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [5/15]

bool visit ( distinct_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [6/15]

bool visit ( enum_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12188 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 12236 of file abg-comparison.cc.

◆ visit() [8/15]

bool visit ( pointer_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12152 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 12176 of file abg-comparison.cc.

◆ visit() [10/15]

bool visit ( reference_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [11/15]

bool visit ( scope_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12224 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 12272 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 12248 of file abg-comparison.cc.

◆ visit() [14/15]

bool visit ( typedef_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [15/15]

bool visit ( var_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12140 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 12105 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 12086 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 12114 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 12095 of file abg-comparison.cc.

Member Data Documentation

◆ priv_

std::unique_ptr<priv> priv_
protected

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


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