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

Constructor & Destructor Documentation

◆ version() [1/3]

version ( )

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

◆ version() [3/3]

version ( const version v)

Definition at line 3188 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 3219 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 3226 of file abg-ir.cc.

◆ is_empty()

bool is_empty ( ) const

Definition at line 3230 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 3198 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 3248 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 3257 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 3239 of file abg-ir.cc.

◆ str() [1/2]

const string & str ( ) const

Getter for the version name.

Returns
the version name.

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


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