GCC Middle and Back End API Reference
auto_mpfr Class Reference

#include <realmpfr.h>

Public Member Functions

 auto_mpfr ()
 
 auto_mpfr (mpfr_prec_t prec)
 
 ~auto_mpfr ()
 
 operator mpfr_t & ()
 
mpfr_ptr operator-> ()
 
 auto_mpfr (const auto_mpfr &)=delete
 
auto_mpfroperator= (const auto_mpfr &)=delete
 

Private Attributes

mpfr_t m_mpfr
 

Friends

void mpfr_clear (auto_mpfr &)=delete
 
void mpfr_init (auto_mpfr &)=delete
 
void mpfr_init2 (auto_mpfr &, mpfr_prec_t)=delete
 

Detailed Description

Definitions of floating-point conversion from compiler
internal format to MPFR.
Copyright (C) 2010-2024 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   

Constructor & Destructor Documentation

◆ auto_mpfr() [1/3]

auto_mpfr::auto_mpfr ( )
inline

References m_mpfr, and mpfr_init.

◆ auto_mpfr() [2/3]

auto_mpfr::auto_mpfr ( mpfr_prec_t prec)
inlineexplicit

References m_mpfr, and mpfr_init2.

◆ ~auto_mpfr()

auto_mpfr::~auto_mpfr ( )
inline

References m_mpfr, and mpfr_clear.

◆ auto_mpfr() [3/3]

auto_mpfr::auto_mpfr ( const auto_mpfr & )
delete

Member Function Documentation

◆ operator mpfr_t &()

auto_mpfr::operator mpfr_t & ( )
inline

References m_mpfr.

◆ operator->()

mpfr_ptr auto_mpfr::operator-> ( )
inline

References m_mpfr.

◆ operator=()

auto_mpfr & auto_mpfr::operator= ( const auto_mpfr & )
delete

Friends And Related Symbol Documentation

◆ mpfr_clear

void mpfr_clear ( auto_mpfr & )
friend

Referenced by ~auto_mpfr().

◆ mpfr_init

void mpfr_init ( auto_mpfr & )
friend

Referenced by auto_mpfr().

◆ mpfr_init2

void mpfr_init2 ( auto_mpfr & ,
mpfr_prec_t  )
friend

Referenced by auto_mpfr().

Field Documentation

◆ m_mpfr

mpfr_t auto_mpfr::m_mpfr
private

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