libabigail
Public Member Functions | List of all members
elf_symbol::version Class Reference

The abstraction of the version of an ELF symbol. More...

#include <abg-ir.h>

Public Member Functions

 version (const string &v, bool is_default)
 
 version (const version &v)
 
bool is_default () const
 Getter for the 'is_default' property of the version. More...
 
void is_default (bool f)
 Setter for the 'is_default' property of the version. More...
 
bool is_empty () const
 
 operator const string & () const
 Cast the version_type into a string that is its name. More...
 
bool operator!= (const version &o) const
 Inequality operator. More...
 
versionoperator= (const version &o)
 Assign a version to the current one. More...
 
bool operator== (const version &o) const
 Compares the current version against another one. More...
 
const string & str () const
 Getter for the version name. More...
 
void str (const string &s)
 Setter for the version name. More...
 

Detailed Description

The abstraction of the version of an ELF symbol.

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

Constructor & Destructor Documentation

◆ version()

version ( const string &  v,
bool  is_default 
)
Parameters
vthe name of the version.
is_defaulttrue if this is a default version.

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

Member Function Documentation

◆ is_default() [1/2]

bool is_default ( ) const

Getter for the 'is_default' property of the version.

Returns
true iff this is a default version.

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

◆ is_default() [2/2]

void is_default ( bool  f)

Setter for the 'is_default' property of the version.

Parameters
ftrue if this is the default version.

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

◆ operator const string &()

operator const string & ( ) const

Cast the version_type into a string that is its name.

Returns
the name of the version.

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

◆ operator!=()

bool operator!= ( const version o) const

Inequality operator.

Parameters
othe version to compare against the current one.
Returns
true iff both versions are different.

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

◆ operator=()

elf_symbol::version & operator= ( const version o)

Assign a version to the current one.

Parameters
othe other version to assign to this one.
Returns
a reference to the assigned version.

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

◆ operator==()

bool operator== ( const version o) const

Compares the current version against another one.

Parameters
othe other version to compare the current one to.
Returns
true iff the current version equals o.

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

◆ str() [1/2]

const string & str ( ) const

Getter for the version name.

Returns
the version name.

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

◆ str() [2/2]

void str ( const string &  s)

Setter for the version name.

Parameters
sthe version name.

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


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