binary_helper< interval< C, V > > Struct Template Reference

#include <interval.hpp>

Inheritance diagram for binary_helper< interval< C, V > >:
void_binary_helper< interval< C, V > >

List of all members.

Static Public Member Functions


Detailed Description

template<typename C, typename V>
struct mmx::binary_helper< interval< C, V > >

Definition at line 179 of file interval.hpp.


Member Function Documentation

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

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 186 of file interval.hpp.

References Interval, and mmx::vector_access().

00186                                                      {
00187     return Interval (as<C> (vector_access (v, 0)),
00188                      as<C> (vector_access (v, 1))); }

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

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 184 of file interval.hpp.

References mmx::gen_vec(), mmx::lower(), and mmx::upper().

00184                                                         {
00185     return gen_vec (as<generic> (lower (x)), as<generic> (upper (x))); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 182 of file interval.hpp.

References mmx::C, Full_type_name, and mmx::gen().

00182                                           {
00183     return gen ("Interval", Full_type_name (C)); }

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

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 192 of file interval.hpp.

References mmx::C, and Interval.

00192                                                {
00193     C l= binary_read<C> (in);
00194     C r= binary_read<C> (in);
00195     return Interval (l, r); }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 180 of file interval.hpp.

References mmx::C, and Short_type_name.

00180                                           {
00181     return "I" * Short_type_name (C); }

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

Reimplemented from void_binary_helper< interval< C, V > >.

Definition at line 189 of file interval.hpp.

References mmx::lower(), and mmx::upper().

00189                                                                 {
00190     binary_write<C> (out, lower (x));
00191     binary_write<C> (out, upper (x)); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1