Swarm-NG  1.1
peyton::io::binary Namespace Reference

auxiliary/debug variables/methods are found here More...

Classes

struct  datatype_info
 Type information structure for manifest. More...
 

Functions

bool operator< (const datatype_info &a, const datatype_info &b)
 Define operators.
 
bool operator== (const datatype_info &a, const datatype_info &b)
 Define operators.
 
std::ostream & operator<< (std::ostream &out, const datatype_info &di)
 Define operators.
 
std::ostream & operator<< (std::ostream &out, const manifest_t &manifest)
 Define operators.
 
template<typename T >
void add_to_manifest ()
 Add typename information to manifest. More...
 

Variables

manifest_t manifest
 A map between T and sizeof(T)
 
bool track_manifest = true
 If set to true , manifest will be populated.
 

Detailed Description

auxiliary/debug variables/methods are found here

Function Documentation

template<typename T >
void peyton::io::binary::add_to_manifest ( )
inline

Add typename information to manifest.

Adds the type information to manifest , but only on first invocation for the given type. Used by ibstream::pod_read() and obstream::pod_write() methods.

Definition at line 141 of file binarystream.hpp.

References manifest, and track_manifest.