Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Dft_Store_Node< GT > Struct Template Reference

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.
 

Detailed Description

template<class GT>
struct Aleph::Dft_Store_Node< GT >

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.

Template Parameters
GTGraph type

Definition at line 151 of file io_graph.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT >
void Aleph::Dft_Store_Node< GT >::operator() ( std::ofstream &  output,
GT g,
typename GT::Node p 
)
inline

Store node to binary stream.

Parameters
outputBinary output stream
gReference to the graph (unused in default implementation)
pNode pointer to store

Definition at line 158 of file io_graph.H.

References GTNodeCommon< NodeInfo >::get_info(), Aleph::maps(), and output.

◆ operator()() [2/2]

template<class GT >
void Aleph::Dft_Store_Node< GT >::operator() ( std::ostream &  output,
GT g,
typename GT::Node p 
)
inline

Store node to text stream.

Parameters
outputText output stream
gReference to the graph (unused in default implementation)
pNode pointer to store

Definition at line 170 of file io_graph.H.

References GTNodeCommon< NodeInfo >::get_info(), Aleph::maps(), and output.


The documentation for this struct was generated from the following file: