binary_helper< complex< C > > Struct Template Reference

#include <complex.hpp>

Inheritance diagram for binary_helper< complex< C > >:
void_binary_helper< complex< C > >

List of all members.

Static Public Member Functions


Detailed Description

template<typename C>
struct mmx::binary_helper< complex< C > >

Definition at line 174 of file complex.hpp.


Member Function Documentation

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

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 181 of file complex.hpp.

References Complex, and mmx::vector_access().

00181                                                     {
00182     return Complex (as<C> (vector_access (v, 0)),
00183                     as<C> (vector_access (v, 1))); }

static generic disassemble ( const complex< C > &  z  )  [inline, static]

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 179 of file complex.hpp.

References mmx::gen_vec(), mmx::Im(), and mmx::Re().

00179                                                        {
00180     return gen_vec (as<generic> (Re (z)), as<generic> (Im (z))); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 177 of file complex.hpp.

References Full_type_name, and mmx::gen().

00177                                           {
00178     return gen ("Complex", Full_type_name (C)); }

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

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 187 of file complex.hpp.

References Complex.

00187                                               {
00188     C r= binary_read<C> (in);
00189     C i= binary_read<C> (in);
00190     return Complex (r, i); }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 175 of file complex.hpp.

References Short_type_name.

00175                                           {
00176     return "Cc" * Short_type_name (C); }

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

Reimplemented from void_binary_helper< complex< C > >.

Definition at line 184 of file complex.hpp.

References mmx::Im(), and mmx::Re().

00184                                                                {
00185     binary_write<C> (out, Re (z));
00186     binary_write<C> (out, Im (z)); }


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

Generated on 6 Dec 2012 for numerix by  doxygen 1.6.1