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

Constructor & Destructor Documentation

◆ diff_node_visitor() [1/2]

Default constructor of the diff_node_visitor type.

Definition at line 12156 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 12165 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 12211 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 12175 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 12195 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 12203 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 12184 of file abg-comparison.cc.

◆ visit() [1/15]

bool visit ( base_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [2/15]

bool visit ( class_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [3/15]

bool visit ( corpus_diff ,
bool   
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [4/15]

bool visit ( diff ,
bool   
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [5/15]

bool visit ( distinct_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [6/15]

bool visit ( enum_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [8/15]

bool visit ( pointer_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [10/15]

bool visit ( reference_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [11/15]

bool visit ( scope_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12358 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 12406 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 12382 of file abg-comparison.cc.

◆ visit() [14/15]

bool visit ( typedef_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

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

◆ visit() [15/15]

bool visit ( var_diff dif,
bool  pre 
)
virtual

Default visitor implementation.

Returns
true

Definition at line 12274 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 12239 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 12220 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 12248 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 12229 of file abg-comparison.cc.


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