include/basix/port.hpp File Reference
#include <basix/string.hpp>
Go to the source code of this file.
Classes
Namespaces
Defines
Typedefs
Functions
- string string_as_mmx (const string &s)
- string output_as_mmx (const generic &g)
- port_rep * inside (const port &x)
- template<> nat hard_hash (const port &x)
- template<> bool hard_eq (const port &x, const port &y)
- template<> bool hard_neq (const port &x, const port &y)
- nat exact_hash (const port &x)
- bool exact_eq (const port &x, const port &y)
- bool exact_neq (const port &x, const port &y)
- nat hash (const port &x)
- bool operator== (const port &x, const port &y)
- bool operator!= (const port &x, const port &y)
- syntactic flatten (const port &p)
- port input_string_port (const string &s)
- port output_string_port (string &s)
- port input_output_string_port (string &s)
- port input_file_port (const string &name)
- port output_file_port (const string &name)
- port input_output_file_port (const string &name)
- port socket_server_port (const string &host, int port)
- port socket_client_port (const string &host, int port)
- port pipe_port (const string &cmd)
- port composite_port (const vector< port > &ps)
- port composite_port (const vector< port > &ps, const vector< string > &names)
- port formatting_port (const port &p)
- port error_port (const string &message)
- bool is_input_port (const port &p)
- bool is_output_port (const port &p)
- bool error_flag (const port &p)
- string error_message (const port &p)
- bool busy (const port &p)
- nat can_write (const port &p)
- nat can_read (const port &p)
- void write (const port &p, const char *s, nat n)
- void write (const port &p, const string &s)
- void read (const port &p, char *s, nat n)
- string read (const port &p, nat n)
- void flush (const port &p)
- bool wait (const port &p, int msec)
- port accept (const port &p)
- port component (const port &p, const string &name)
- nat wait_port_event (int msecs)
- template<typename C > port operator<< (const port &out, const C &x)
- port operator<< (const port &out, const string &s)
- port operator<< (const port &out, const charp &s)
- port operator<< (const port &out, const const_charp &s)
- port operator<< (const port &out, const char &c)
- port operator<< (const port &out, const print_format &fm)
- port operator>> (const port &in, char &c)
- template<typename C > generic binary_disassemble (const C &x)
- template<typename C > C binary_assemble (const generic &x)
- template<typename C > void binary_write (const port &out, const C &x)
- template<typename C > C binary_read (const port &in)
- template<typename C > nat binary_size (const C &x)
- template<typename C > generic binary_access (const C &x, nat i)
- template<typename C > port binary_ll (const port &out, const C &x)
- template<typename C > port binary_rr (const port &in, C &x)
- void attach_generic_binary_assembler (const generic &, unary_generic)
- generic binary_type_generic (const generic &g)
- generic binary_disassemble_generic (const generic &g)
- generic binary_assemble_generic (const generic &tp, const generic &val)
- template<typename T > generic binary_assemble_generic_via (const generic &x)
- template<typename T > void attach_generic_binary_assembler ()
- void attach_generic_binary_reader (const string &, unary_generic)
- void binary_write_generic (const port &out, const generic &g)
- generic binary_read_generic (const port &in)
- template<typename T > generic binary_read_generic (const generic &in)
- template<typename T > void attach_generic_binary_reader ()
- generic generic_disassemble (const generic &x)
- generic generic_assemble (const generic &x)
Variables
Detailed Description
Definition in file port.hpp.
Define Documentation
#define Full_type_name |
( |
T |
|
) |
binary_helper<T >::full_type_name () |
Definition at line 250 of file port.hpp.
Referenced by verbose_as_helper< T, F >::cv(), 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< new_table< C, T, V > >::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 mmx_wait mmx::wait |
#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 |
( |
T |
|
) |
binary_helper<T >::short_type_name () |
Definition at line 249 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< new_table< C, T, V > >::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().