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

The abstraction for a data member context relationship. This relates a data member to its parent class. More...

#include <abg-ir.h>

Inheritance diagram for dm_context_rel:
[legend]

Public Member Functions

 dm_context_rel (scope_decl *s)
 
 dm_context_rel (scope_decl *s, bool is_laid_out, size_t offset_in_bits, access_specifier a, bool is_static)
 
const var_declget_anonymous_data_member () const
 Return a non-nil value if this data member context relationship has an anonymous data member. That means, if the data member this relation belongs to is part of an anonymous data member. More...
 
bool get_is_laid_out () const
 
size_t get_offset_in_bits () const
 
bool operator!= (const dm_context_rel &o) const
 
bool operator== (const dm_context_rel &o) const
 
void set_anonymous_data_member (var_decl *)
 Set the containing anonymous data member of this data member context relationship. That means that the data member this relation belongs to is part of an anonymous data member. More...
 
void set_is_laid_out (bool f)
 
void set_offset_in_bits (size_t o)
 
- 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

std::unique_ptr< priv > priv_
 
- Protected Attributes inherited from context_rel
enum access_specifier access_
 
bool is_static_
 
scope_declscope_
 

Detailed Description

The abstraction for a data member context relationship. This relates a data member to its parent class.

The relationship carries properties like the offset of the data member, if applicable.

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

Member Function Documentation

◆ get_anonymous_data_member()

const var_decl * get_anonymous_data_member ( ) const

Return a non-nil value if this data member context relationship has an anonymous data member. That means, if the data member this relation belongs to is part of an anonymous data member.

Returns
the containing anonymous data member of this data member relationship. Nil if there is none.

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

◆ set_anonymous_data_member()

void set_anonymous_data_member ( var_decl anon_dm)

Set the containing anonymous data member of this data member context relationship. That means that the data member this relation belongs to is part of an anonymous data member.

Parameters
anon_dmthe containing anonymous data member of this data member relationship. Nil if there is none.

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


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