GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
gdb_mpz Struct Reference

#include "gmp-utils.h"

Public Member Functions

 gdb_mpz ()
 
 gdb_mpz (const mpz_t &from_val)
 
 gdb_mpz (const gdb_mpz &from)
 
template<typename T , typename = gdb::Requires<std::is_integral<T>>>
 gdb_mpz (T src)
 
 gdb_mpz (gdb_mpz &&from)
 
gdb_mpzoperator= (const gdb_mpz &from)
 
gdb_mpzoperator= (gdb_mpz &&other)
 
template<typename T , typename = gdb::Requires<std::is_integral<T>>>
gdb_mpzoperator= (T src)
 
template<typename T >
T as_integer () const
 
void read (gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p)
 
void write (gdb::array_view< gdb_byte > buf, enum bfd_endian byte_order, bool unsigned_p) const
 
std::string str () const
 
 ~gdb_mpz ()
 

Public Attributes

mpz_t val
 

Private Member Functions

template<typename T >
void set (T src)
 
void safe_export (gdb::array_view< gdb_byte > buf, int endian, bool unsigned_p) const
 

Detailed Description

Definition at line 38 of file gmp-utils.h.

Constructor & Destructor Documentation

◆ gdb_mpz() [1/5]

gdb_mpz::gdb_mpz ( )
inline

Definition at line 43 of file gmp-utils.h.

References val.

◆ gdb_mpz() [2/5]

gdb_mpz::gdb_mpz ( const mpz_t &  from_val)
inlineexplicit

Definition at line 45 of file gmp-utils.h.

References val.

◆ gdb_mpz() [3/5]

gdb_mpz::gdb_mpz ( const gdb_mpz from)
inline

Definition at line 51 of file gmp-utils.h.

References val.

◆ gdb_mpz() [4/5]

template<typename T , typename = gdb::Requires<std::is_integral<T>>>
gdb_mpz::gdb_mpz ( T  src)
inlineexplicit

Definition at line 62 of file gmp-utils.h.

References set(), and val.

◆ gdb_mpz() [5/5]

gdb_mpz::gdb_mpz ( gdb_mpz &&  from)
inlineexplicit

Definition at line 68 of file gmp-utils.h.

References val.

◆ ~gdb_mpz()

gdb_mpz::~gdb_mpz ( )
inline

Definition at line 118 of file gmp-utils.h.

References val.

Member Function Documentation

◆ as_integer()

template<typename T >
T gdb_mpz::as_integer

◆ operator=() [1/3]

gdb_mpz & gdb_mpz::operator= ( const gdb_mpz from)
inline

Definition at line 75 of file gmp-utils.h.

References val.

◆ operator=() [2/3]

gdb_mpz & gdb_mpz::operator= ( gdb_mpz &&  other)
inline

Definition at line 81 of file gmp-utils.h.

References val.

◆ operator=() [3/3]

template<typename T , typename = gdb::Requires<std::is_integral<T>>>
gdb_mpz & gdb_mpz::operator= ( T  src)
inline

Definition at line 88 of file gmp-utils.h.

References set().

◆ read()

void gdb_mpz::read ( gdb::array_view< const gdb_byte >  buf,
enum bfd_endian  byte_order,
bool  unsigned_p 
)

◆ safe_export()

void gdb_mpz::safe_export ( gdb::array_view< gdb_byte >  buf,
int  endian,
bool  unsigned_p 
) const
private

Definition at line 78 of file gmp-utils.c.

References str(), and val.

Referenced by as_integer(), and write().

◆ set()

template<typename T >
void gdb_mpz::set ( T  src)
private

Definition at line 256 of file gmp-utils.h.

References val.

Referenced by gdb_mpz(), and operator=().

◆ str()

std::string gdb_mpz::str ( ) const
inline

Definition at line 115 of file gmp-utils.h.

References gmp_string_printf(), and val.

Referenced by safe_export().

◆ write()

void gdb_mpz::write ( gdb::array_view< gdb_byte >  buf,
enum bfd_endian  byte_order,
bool  unsigned_p 
) const

Member Data Documentation

◆ val

mpz_t gdb_mpz::val

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