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

Default node loading functor for binary and text modes. More...

#include <io_graph.H>

Public Member Functions

void operator() (std::ifstream &input, GT &g, typename GT::Node *p)
 Load node from binary stream.
 
void operator() (std::istream &input, GT &g, typename GT::Node *p)
 Load node from text stream.
 

Detailed Description

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

Default node loading functor for binary and text modes.

Loads node information by reading raw bytes from binary streams, or using operator>> for text streams.

Template Parameters
GTGraph type

Definition at line 221 of file io_graph.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT >
void Aleph::Dft_Load_Node< GT >::operator() ( std::ifstream &  input,
GT g,
typename GT::Node p 
)
inline

Load node from binary stream.

Parameters
inputBinary input stream
gReference to the graph (unused in default implementation)
pNode pointer to load into

Definition at line 228 of file io_graph.H.

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

◆ operator()() [2/2]

template<class GT >
void Aleph::Dft_Load_Node< GT >::operator() ( std::istream &  input,
GT g,
typename GT::Node p 
)
inline

Load node from text stream.

Parameters
inputText input stream
gReference to the graph (unused in default implementation)
pNode pointer to load into

Definition at line 240 of file io_graph.H.

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


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