|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Default node storage functor for binary and text modes. More...
#include <io_graph.H>
Public Member Functions | |
| void | operator() (std::ofstream &output, GT &g, typename GT::Node *p) |
| Store node to binary stream. | |
| void | operator() (std::ostream &output, GT &g, typename GT::Node *p) |
| Store node to text stream. | |
Default node storage functor for binary and text modes.
Stores node information by writing the raw bytes of get_info() to binary streams, or using operator<< for text streams.
| GT | Graph type |
Definition at line 151 of file io_graph.H.
|
inline |
Store node to binary stream.
| output | Binary output stream |
| g | Reference to the graph (unused in default implementation) |
| p | Node pointer to store |
Definition at line 158 of file io_graph.H.
References GTNodeCommon< NodeInfo >::get_info(), Aleph::maps(), and output.
|
inline |
Store node to text stream.
| output | Text output stream |
| g | Reference to the graph (unused in default implementation) |
| p | Node pointer to store |
Definition at line 170 of file io_graph.H.
References GTNodeCommon< NodeInfo >::get_info(), Aleph::maps(), and output.