binary_helper< twin< C, D, V > > Struct Template Reference

#include <twin.hpp>

Inheritance diagram for binary_helper< twin< C, D, V > >:
void_binary_helper< twin< C, D, V > >

List of all members.

Static Public Member Functions


Detailed Description

template<typename C, typename D, typename V>
struct mmx::binary_helper< twin< C, D, V > >

Definition at line 110 of file twin.hpp.


Member Function Documentation

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

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 117 of file twin.hpp.

References Twin, and mmx::vector_access().

00117                                                  {
00118     return Twin (as<C> (vector_access (v, 0)),
00119                  as<D> (vector_access (v, 1))); }

static generic disassemble ( const twin< C, D, V > &  z  )  [inline, static]

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 115 of file twin.hpp.

References mmx::car(), mmx::cdr(), and mmx::gen_vec().

00115                                                     {
00116     return gen_vec (as<generic> (car (z)), as<generic> (cdr (z))); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 113 of file twin.hpp.

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

00113                                           {
00114     return gen ("Twin", Full_type_name (C), Full_type_name (D)); }

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

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 123 of file twin.hpp.

References mmx::C, and Twin.

00123                                            {
00124     C c= binary_read<C> (in);
00125     D d= binary_read<D> (in);
00126     return Twin (c, d); }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 111 of file twin.hpp.

References mmx::C, and Short_type_name.

00111                                           {
00112     return "Tw" * Short_type_name (C) * Short_type_name (D); }

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

Reimplemented from void_binary_helper< twin< C, D, V > >.

Definition at line 120 of file twin.hpp.

References mmx::car(), and mmx::cdr().

00120                                                             {
00121     binary_write<C> (out, car (z));
00122     binary_write<D> (out, cdr (z)); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1