libabigail
Public Member Functions | Protected Attributes | List of all members
mem_fn_context_rel Class Reference

Abstraction of a member function context relationship. This relates a member function to its parent class. More...

#include <abg-ir.h>

Inheritance diagram for mem_fn_context_rel:
[legend]

Public Member Functions

 mem_fn_context_rel (scope_decl *s)
 
 mem_fn_context_rel (scope_decl *s, bool is_constructor, bool is_destructor, bool is_const, bool is_virtual, size_t vtable_offset_in_bits, access_specifier access, bool is_static)
 
bool is_const () const
 Getter for the 'is-const' property. More...
 
void is_const (bool f)
 Setter for the 'is-const' property. More...
 
bool is_constructor () const
 Getter for the 'is-constructor' property. More...
 
void is_constructor (bool f)
 Setter for the 'is-constructor' property. More...
 
bool is_destructor () const
 Getter for the 'is-destructor' property. More...
 
void is_destructor (bool f)
 Setter for the 'is-destructor' property. More...
 
bool is_virtual () const
 
void is_virtual (bool is_virtual)
 
size_t vtable_offset () const
 Getter for the vtable offset property. More...
 
void vtable_offset (size_t s)
 Setter for the vtable offset property. More...
 
- Public Member Functions inherited from context_rel
 context_rel (scope_decl *s)
 
 context_rel (scope_decl *s, access_specifier a, bool f)
 
access_specifier get_access_specifier () const
 
bool get_is_static () const
 
scope_declget_scope () const
 
bool operator!= (const context_rel &o) const
 Inequality operator. More...
 
bool operator== (const context_rel &o) const
 
void set_access_specifier (access_specifier a)
 
void set_is_static (bool s)
 
void set_scope (scope_decl *s)
 

Protected Attributes

bool is_const_
 
bool is_constructor_
 
bool is_destructor_
 
bool is_virtual_
 
ssize_t vtable_offset_in_bits_
 
- Protected Attributes inherited from context_rel
enum access_specifier access_
 
bool is_static_
 
scope_declscope_
 

Detailed Description

Abstraction of a member function context relationship. This relates a member function to its parent class.

Definition at line 4555 of file abg-ir.h.

Member Function Documentation

◆ is_const() [1/2]

bool is_const ( ) const
inline

Getter for the 'is-const' property.

Tells if the member function of this relation is a const member function.

Returns
the 'is-const' property of the relation.

Definition at line 4669 of file abg-ir.h.

◆ is_const() [2/2]

void is_const ( bool  f)
inline

Setter for the 'is-const' property.

Parameters
fthe new value of the property. Is true if this is for a const entity, false otherwise.

Definition at line 4677 of file abg-ir.h.

◆ is_constructor() [1/2]

bool is_constructor ( ) const
inline

Getter for the 'is-constructor' property.

This tells if the member function of this relation is a constructor.

Returns
the is-constructor property of the relation.

Definition at line 4634 of file abg-ir.h.

◆ is_constructor() [2/2]

void is_constructor ( bool  f)
inline

Setter for the 'is-constructor' property.

Parameters
fthe new value of the the property. Is true if this is for a constructor, false otherwise.

Definition at line 4642 of file abg-ir.h.

◆ is_destructor() [1/2]

bool is_destructor ( ) const
inline

Getter for the 'is-destructor' property.

Tells if the member function of this relation is a destructor.

Returns
the is-destructor property of the relation;

Definition at line 4651 of file abg-ir.h.

◆ is_destructor() [2/2]

void is_destructor ( bool  f)
inline

Setter for the 'is-destructor' property.

Parameters
fthe new value of the property. Is true if this is for a destructor, false otherwise.

Definition at line 4659 of file abg-ir.h.

◆ vtable_offset() [1/2]

size_t vtable_offset ( ) const
inline

Getter for the vtable offset property.

This is the vtable offset of the member function of this relation.

Returns
the vtable offset property of the relation.

Definition at line 4614 of file abg-ir.h.

◆ vtable_offset() [2/2]

void vtable_offset ( size_t  s)
inline

Setter for the vtable offset property.

This is the vtable offset of the member function of this relation.

@partam s the new vtable offset.

Definition at line 4624 of file abg-ir.h.


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