basix_doc 0.1
/Users/mourrain/Devel/mmx/basix/include/basix/port.hpp File Reference
#include <basix/string.hpp>

Go to the source code of this file.

Classes

Namespaces

Defines

Typedefs

Functions

Variables


Detailed Description

Definition in file port.hpp.


Define Documentation

#define NUMERIC_BINARY_HELPER (   TMPL,
  C,
  name,
  fname 
)
Value:
TMPL                                                                     \
 struct binary_helper< C >: public void_binary_helper< C > {             \
  static inline string short_type_name () { return name; }               \
  static inline generic full_type_name () { return fname; }              \
  static inline generic disassemble (const C& x) {                       \
  return as<generic> (numeric_as_string (x)); }                          \
  static inline C assemble (const generic& x) {                          \
    return string_as_numeric<C> (as<string> (x)); }                      \
  static inline void write (const port& out, const C& x) {               \
    mmx::write (out, (const char*) ((const void*) (&x)), sizeof (C)); }  \
  static inline C read (const port& in) {                                \
    C x; mmx::read (in, (char*) ((void*) (&x)), sizeof (C)); return x; } \
};

Definition at line 316 of file port.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines