basix_doc 0.1
binary_helper< string > Struct Template Reference

#include <port.hpp>

Inheritance diagram for binary_helper< string >:
void_binary_helper< string >

List of all members.

Static Public Member Functions


Detailed Description

template<>
struct mmx::binary_helper< string >

Definition at line 361 of file port.hpp.


Member Function Documentation

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

Definition at line 187 of file port.hpp.

                                                   {
    return vector_access (disassemble (x), i); }
static string assemble ( const generic x) [inline, static, inherited]

Definition at line 191 of file port.hpp.

                                              {
    return as<C> (x); }
static generic disassemble ( const string x) [inline, static, inherited]

Definition at line 189 of file port.hpp.

                                                 {
    return as<generic> (x); }
static generic full_type_name ( ) [inline, static]

Reimplemented from void_binary_helper< string >.

Definition at line 363 of file port.hpp.

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

Reimplemented from void_binary_helper< string >.

Definition at line 367 of file port.hpp.

References n, and mmx::read().

                                             {
    nat n= binary_read<nat> (in);
    return mmx::read (in, n); }
static string short_type_name ( ) [inline, static]

Reimplemented from void_binary_helper< string >.

Definition at line 362 of file port.hpp.

{ return "S"; }
static nat size ( const string x) [inline, static, inherited]

Definition at line 185 of file port.hpp.

                                      {
    return vector_size (disassemble (x)); }
static void write ( const port out,
const string s 
) [inline, static]

Reimplemented from void_binary_helper< string >.

Definition at line 364 of file port.hpp.

References mmx::N(), and mmx::write().

                                                              {
    binary_write<nat> (out, N(s));
    mmx::write (out, s); }

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