basix_doc 0.1
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 288 of file port.hpp.


Member Function Documentation

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

Definition at line 292 of file port.hpp.

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

                                                         {
    if (i == 0) return binary_type_generic (x);
    else if (i == 1) return binary_disassemble_generic (x);
    else ERROR ("index out of range"); }
static generic assemble ( const generic x) [inline, static]

Definition at line 298 of file port.hpp.

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

                                                    {
    return binary_assemble_generic (vector_access (x, 0),
                                    vector_access (x, 1)); }
static generic disassemble ( const generic x) [inline, static]

Definition at line 296 of file port.hpp.

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

                                                       {
    return gen_vec (access (x, 0), access (x, 1)); }
static generic full_type_name ( ) [inline, static]

Definition at line 290 of file port.hpp.

{ return "Generic"; }
static generic read ( const port in) [inline, static]

Definition at line 303 of file port.hpp.

References mmx::binary_read_generic().

                                       {
    return binary_read_generic (in); }
static string short_type_name ( ) [inline, static]

Definition at line 289 of file port.hpp.

{ return "Gen"; }
static nat size ( const generic g) [inline, static]

Definition at line 291 of file port.hpp.

{ (void) g; return 2; }
static void write ( const port out,
const generic g 
) [inline, static]

Definition at line 301 of file port.hpp.

References mmx::binary_write_generic().

                                                               {
    binary_write_generic (out, g); }

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