libabigail
Classes | Public Member Functions | Friends | List of all members
function_suppression::parameter_spec Class Reference

Abstraction of the specification of a function parameter in a function suppression specification. More...

#include <abg-suppression.h>

Classes

class  priv
 

Public Member Functions

 parameter_spec (size_t index, const string &type_name, const string &type_name_regex)
 Constructor for the the function_suppression::parameter_spec type. More...
 
size_t get_index () const
 Getter for the index of the parameter designated by this specification. More...
 
const string & get_parameter_type_name () const
 Getter for the type name of the parameter designated by this specification. More...
 
const string & get_parameter_type_name_regex_str () const
 Getter for the regular expression that defines a set of type names for the parameter designated by this specification. More...
 
void set_index (size_t)
 Setter for the index of the parameter designated by this specification. More...
 
void set_parameter_type_name (const string &)
 Setter for the type name of the parameter designated by this specification. More...
 
void set_parameter_type_name_regex_str (const string &)
 Setter for the regular expression that defines a set of type names for the parameter designated by this specification. More...
 

Friends

class function_suppression
 

Detailed Description

Abstraction of the specification of a function parameter in a function suppression specification.

Definition at line 708 of file abg-suppression.h.

Constructor & Destructor Documentation

◆ parameter_spec()

parameter_spec ( size_t  i,
const string &  tn,
const string &  tn_regex 
)

Constructor for the the function_suppression::parameter_spec type.

Parameters
ithe index of the parameter designated by this specification.
tnthe type name of the parameter designated by this specification.
tn_regexa regular expression that defines a set of type names for the parameter designated by this specification. Note that at evaluation time, this regular expression is taken in account only if the parameter tn is empty.

Definition at line 2449 of file abg-suppression.cc.

Member Function Documentation

◆ get_index()

size_t get_index ( ) const

Getter for the index of the parameter designated by this specification.

Returns
the index of the parameter designated by this specification.

Definition at line 2461 of file abg-suppression.cc.

◆ get_parameter_type_name()

const string & get_parameter_type_name ( ) const

Getter for the type name of the parameter designated by this specification.

Returns
the type name of the parameter.

Definition at line 2476 of file abg-suppression.cc.

◆ get_parameter_type_name_regex_str()

const string & get_parameter_type_name_regex_str ( ) const

Getter for the regular expression that defines a set of type names for the parameter designated by this specification.

Note that at evaluation time, this regular expression is taken in account only if the name of the parameter as returned by function_suppression::parameter_spec::get_parameter_type_name() is empty.

Returns
the regular expression or the parameter type name.

Definition at line 2497 of file abg-suppression.cc.

◆ set_index()

void set_index ( size_t  i)

Setter for the index of the parameter designated by this specification.

Parameters
ithe new index to set.

Definition at line 2469 of file abg-suppression.cc.

◆ set_parameter_type_name()

void set_parameter_type_name ( const string &  tn)

Setter for the type name of the parameter designated by this specification.

Parameters
tnnew parameter type name to set.

Definition at line 2484 of file abg-suppression.cc.

◆ set_parameter_type_name_regex_str()

void set_parameter_type_name_regex_str ( const string &  type_name_regex_str)

Setter for the regular expression that defines a set of type names for the parameter designated by this specification.

Note that at evaluation time, this regular expression is taken in account only if the name of the parameter as returned by function_suppression::parameter_spec::get_parameter_type_name() is empty.

Parameters
type_name_regex_strthe new type name regular expression to set.

Definition at line 2511 of file abg-suppression.cc.


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