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 363 of file port.hpp.


Member Function Documentation

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

Definition at line 189 of file port.hpp.

00189                                                    {
00190     return vector_access (disassemble (x), i); }

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

Definition at line 193 of file port.hpp.

00193                                               {
00194     return as<C> (x); }

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

Definition at line 191 of file port.hpp.

00191                                                  {
00192     return as<generic> (x); }

static generic full_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< string >.

Definition at line 365 of file port.hpp.

00365 { return "String"; }

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

Reimplemented from void_binary_helper< string >.

Definition at line 369 of file port.hpp.

References n, and mmx::read().

00369                                              {
00370     nat n= binary_read<nat> (in);
00371     return mmx::read (in, n); }

static string short_type_name (  )  [inline, static]

Reimplemented from void_binary_helper< string >.

Definition at line 364 of file port.hpp.

00364 { return "S"; }

static nat size ( const string x  )  [inline, static, inherited]

Definition at line 187 of file port.hpp.

00187                                       {
00188     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 366 of file port.hpp.

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

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


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

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1