libabigail
Loading...
Searching...
No Matches
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.
 
void is_const (bool f)
 Setter for the 'is-const' property.
 
bool is_constructor () const
 Getter for the 'is-constructor' property.
 
void is_constructor (bool f)
 Setter for the 'is-constructor' property.
 
bool is_destructor () const
 Getter for the 'is-destructor' property.
 
void is_destructor (bool f)
 Setter for the 'is-destructor' property.
 
bool is_virtual () const
 
void is_virtual (bool is_virtual)
 
size_t vtable_offset () const
 Getter for the vtable offset property.
 
void vtable_offset (size_t s)
 Setter for the vtable offset property.
 
- 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.
 
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 4446 of file abg-ir.h.

Constructor & Destructor Documentation

◆ mem_fn_context_rel() [1/3]

mem_fn_context_rel ( )
inline

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

◆ mem_fn_context_rel() [2/3]

Definition at line 4465 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 4474 of file abg-ir.h.

◆ ~mem_fn_context_rel()

~mem_fn_context_rel ( )
virtual

Definition at line 25028 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 4560 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 4568 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 4525 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 4533 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 4542 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 4550 of file abg-ir.h.

◆ is_virtual() [1/2]

bool is_virtual ( ) const
inline

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

◆ is_virtual() [2/2]

void is_virtual ( bool is_virtual)
inline

Definition at line 4495 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 4505 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 4515 of file abg-ir.h.

Member Data Documentation

◆ is_const_

bool is_const_
protected

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

◆ is_constructor_

bool is_constructor_
protected

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

◆ is_destructor_

bool is_destructor_
protected

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

◆ is_virtual_

bool is_virtual_
protected

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

◆ vtable_offset_in_bits_

ssize_t vtable_offset_in_bits_
protected

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


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