numerix_doc 0.4
rounded_local< Mode > Struct Template Reference

#include <rounded.hpp>

List of all members.

Static Public Member Functions


Detailed Description

template<mmx_rounding Mode>
struct mmx::rounded_local< Mode >

Definition at line 126 of file rounded.hpp.


Member Function Documentation

static C rounded_as ( ) [inline, static]

Definition at line 129 of file rounded.hpp.

References mmx::C.

                {
    typedef Return_op(Op,C) Rop;
    typedef rounding_helper<C> H;
    typename H::rounding_mode old= H::get_rounding ();
    H::set_rounding (H::template translate<Mode>::val);
    C r= Rop::op ();
    H::set_rounding (old);
    return r;
  }
static C rounded_as ( const X1 &  x1,
const X2 &  x2 
) [inline, static]

Definition at line 153 of file rounded.hpp.

References mmx::C.

                                          {
    typedef Return_op(Op,C) Rop;
    typedef rounding_helper<C> H;
    typename H::rounding old= H::get_rounding ();
    H::set_rounding (H::template translate<Mode>::val);
    C r= Rop::op (x1, x2);
    H::set_rounding (old);
    return r;
  }
static C rounded_as ( const X1 &  x1) [inline, static]

Definition at line 141 of file rounded.hpp.

References mmx::C.

                            {
    typedef Return_op(Op,C) Rop;
    typedef rounding_helper<C> H;
    typename H::rounding_mode old= H::get_rounding ();
    H::set_rounding (H::template translate<Mode>::val);
    C r= Rop::op (x1);
    H::set_rounding (old);
    return r;
  }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines