basix_doc 0.1
|
#include <basix/string.hpp>
Go to the source code of this file.
Definition in file port.hpp.
#define Full_type_name | ( | T | ) | binary_helper<T >::full_type_name () |
Definition at line 248 of file port.hpp.
Referenced by binary_helper< vector< C, V > >::full_type_name(), binary_helper< triple< C1, C2, C3 > >::full_type_name(), binary_helper< table< C, T, V > >::full_type_name(), binary_helper< symbol< C, V > >::full_type_name(), binary_helper< sparse_vector< C, T, V > >::full_type_name(), binary_helper< format< T > >::full_type_name(), binary_helper< pair< C1, C2 > >::full_type_name(), binary_helper< list< C > >::full_type_name(), binary_helper< iterator< C > >::full_type_name(), binary_helper< heap< C > >::full_type_name(), binary_helper< chain< C > >::full_type_name(), and mmx::WRAP_INDIRECT_IMPL().
#define NUMERIC_BINARY_HELPER | ( | TMPL, | |
C, | |||
name, | |||
fname | |||
) |
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; } \ };
#define Short_type_name | ( | T | ) | binary_helper<T >::short_type_name () |
Definition at line 247 of file port.hpp.
Referenced by binary_helper< vector< C, V > >::short_type_name(), binary_helper< triple< C1, C2, C3 > >::short_type_name(), binary_helper< table< C, T, V > >::short_type_name(), binary_helper< symbol< C, V > >::short_type_name(), binary_helper< sparse_vector< C, T, V > >::short_type_name(), binary_helper< format< T > >::short_type_name(), binary_helper< pair< C1, C2 > >::short_type_name(), binary_helper< list< C > >::short_type_name(), binary_helper< iterator< C > >::short_type_name(), binary_helper< heap< C > >::short_type_name(), binary_helper< chain< C > >::short_type_name(), and mmx::WRAP_INDIRECT_IMPL().