binary_helper< generic > Struct Template Reference

#include <port.hpp>

List of all members.

Static Public Member Functions


Detailed Description

template<>
struct mmx::binary_helper< generic >

Definition at line 290 of file port.hpp.


Member Function Documentation

static generic access ( const generic x,
nat  i 
) [inline, static]

Definition at line 294 of file port.hpp.

References mmx::binary_disassemble_generic(), mmx::binary_type_generic(), and ERROR.

00294                                                          {
00295     if (i == 0) return binary_type_generic (x);
00296     else if (i == 1) return binary_disassemble_generic (x);
00297     else ERROR ("index out of range"); }

static generic assemble ( const generic x  )  [inline, static]

Definition at line 300 of file port.hpp.

References mmx::binary_assemble_generic(), and mmx::vector_access().

00300                                                     {
00301     return binary_assemble_generic (vector_access (x, 0),
00302                                     vector_access (x, 1)); }

static generic disassemble ( const generic x  )  [inline, static]

Definition at line 298 of file port.hpp.

References mmx::access(), and mmx::gen_vec().

00298                                                        {
00299     return gen_vec (access (x, 0), access (x, 1)); }

static generic full_type_name (  )  [inline, static]

Definition at line 292 of file port.hpp.

00292 { return "Generic"; }

static generic read ( const port in  )  [inline, static]

Definition at line 305 of file port.hpp.

References mmx::binary_read_generic().

00305                                        {
00306     return binary_read_generic (in); }

static string short_type_name (  )  [inline, static]

Definition at line 291 of file port.hpp.

00291 { return "Gen"; }

static nat size ( const generic g  )  [inline, static]

Definition at line 293 of file port.hpp.

00293 { (void) g; return 2; }

static void write ( const port out,
const generic g 
) [inline, static]

Definition at line 303 of file port.hpp.

References mmx::binary_write_generic().

00303                                                                {
00304     binary_write_generic (out, g); }


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1