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 Full_type_name (  )     binary_helper<T >::full_type_name ()
#define mmx_wait   mmx::wait

Definition at line 20 of file port.hpp.

Referenced by mmx::GLUE_19().

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

#define Short_type_name (  )     binary_helper<T >::short_type_name ()

Generated on 6 Dec 2012 for basix by  doxygen 1.6.1