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 4494 of file abg-ir.h.

Constructor & Destructor Documentation

◆ mem_fn_context_rel() [1/3]

mem_fn_context_rel ( )
inline

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

◆ mem_fn_context_rel() [2/3]

mem_fn_context_rel ( scope_decl s)
inline

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

◆ mem_fn_context_rel() [3/3]

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 
)
inline

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

◆ ~mem_fn_context_rel()

~mem_fn_context_rel ( )
virtual

Definition at line 25440 of file abg-ir.cc.

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 4608 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 4616 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 4573 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 4581 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 4590 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 4598 of file abg-ir.h.

◆ is_virtual() [1/2]

bool is_virtual ( ) const
inline

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

◆ is_virtual() [2/2]

void is_virtual ( bool  is_virtual)
inline

Definition at line 4543 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 4553 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 4563 of file abg-ir.h.

Member Data Documentation

◆ is_const_

bool is_const_
protected

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

◆ is_constructor_

bool is_constructor_
protected

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

◆ is_destructor_

bool is_destructor_
protected

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

◆ is_virtual_

bool is_virtual_
protected

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

◆ vtable_offset_in_bits_

ssize_t vtable_offset_in_bits_
protected

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


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