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

Constructor & Destructor Documentation

◆ version() [1/3]

version ( )

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

◆ version() [2/3]

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

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

◆ version() [3/3]

version ( const version v)

Definition at line 3012 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 3043 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 3050 of file abg-ir.cc.

◆ is_empty()

bool is_empty ( ) const

Definition at line 3054 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 3022 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 3072 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 3081 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 3063 of file abg-ir.cc.

◆ str() [1/2]

const string & str ( ) const

Getter for the version name.

Returns
the version name.

Definition at line 3029 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 3036 of file abg-ir.cc.


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