binary_helper< floating< V > > Struct Template Reference

#include <floating.hpp>

Inheritance diagram for binary_helper< floating< V > >:
void_binary_helper< floating< V > >

List of all members.

Static Public Member Functions


Detailed Description

template<typename V>
struct mmx::binary_helper< floating< V > >

Definition at line 201 of file floating.hpp.


Member Function Documentation

static generic access ( const floating< V > &  x,
nat  i 
) [static, inherited]
static floating<V> assemble ( const generic v  )  [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 208 of file floating.hpp.

References Floating, and mmx::vector_access().

00208                                                      {
00209     xnat old= mmx_bit_precision;
00210     mmx_bit_precision= as<xnat> (vector_access (v, 0));
00211     Floating r= Floating (as<string> (vector_access (v, 1)));
00212     mmx_bit_precision= old;
00213     return r; }

static generic disassemble ( const floating< V > &  x  )  [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 204 of file floating.hpp.

References mmx::gen_vec(), mmx::precision(), and s.

00204                                                         {
00205     xnat p= precision (x);
00206     string s= mpfr_to_string (*x, p + 9);
00207     return gen_vec (as<generic> (p), as<generic> (s)); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 203 of file floating.hpp.

00203 { return "Floating"; }

static floating<V> read ( const port in  )  [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 216 of file floating.hpp.

References Floating.

00216                                                {
00217     Floating x; mpfr_binary_read (in, *x); return x; }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 202 of file floating.hpp.

00202 { return "R"; }

static nat size ( const floating< V > &  x  )  [static, inherited]
static void write ( const port out,
const floating< V > &  x 
) [inline, static]

Reimplemented from void_binary_helper< floating< V > >.

Definition at line 214 of file floating.hpp.

00214                                                                 {
00215     mpfr_binary_write (out, *x); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1