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

The abstraction of the relationship between an entity and its containing scope (its context). That relationship can carry properties like access rights (if the parent is a class_decl), etc. More...

#include <abg-ir.h>

Inheritance diagram for context_rel:
[legend]

Public Member Functions

 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

enum access_specifier access_
 
bool is_static_
 
scope_declscope_
 

Detailed Description

The abstraction of the relationship between an entity and its containing scope (its context). That relationship can carry properties like access rights (if the parent is a class_decl), etc.

But importantly, this relationship carries a pointer to the actualy parent.

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

Constructor & Destructor Documentation

◆ context_rel() [1/3]

context_rel ( )
inline

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

◆ context_rel() [2/3]

context_rel ( scope_decl s)
inline

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

◆ context_rel() [3/3]

context_rel ( scope_decl s,
access_specifier  a,
bool  f 
)
inline

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

◆ ~context_rel()

~context_rel ( )
virtual

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

Member Function Documentation

◆ get_access_specifier()

access_specifier get_access_specifier ( ) const
inline

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

◆ get_is_static()

bool get_is_static ( ) const
inline

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

◆ get_scope()

scope_decl * get_scope ( ) const
inline

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

◆ operator!=()

bool operator!= ( const context_rel o) const
inline

Inequality operator.

Parameters
othe other instance of context_rel to compare the current instance against.
Returns
true iff the current instance of context_rel is different from o.

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

◆ operator==()

bool operator== ( const context_rel o) const
inline

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

◆ set_access_specifier()

void set_access_specifier ( access_specifier  a)
inline

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

◆ set_is_static()

void set_is_static ( bool  s)
inline

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

◆ set_scope()

void set_scope ( scope_decl s)
inline

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

Member Data Documentation

◆ access_

enum access_specifier access_
protected

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

◆ is_static_

bool is_static_
protected

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

◆ scope_

scope_decl* scope_
protected

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


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