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

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

#include <io_graph.H>

Public Member Functions

void operator() (std::ifstream &input, GT &g, typename GT::Arc *a)
 Load arc from binary stream.
 
void operator() (std::istream &input, GT &g, typename GT::Arc *a)
 Load arc from text stream.
 

Detailed Description

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

Default arc loading functor for binary and text modes.

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

Template Parameters
GTGraph type

Definition at line 256 of file io_graph.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT >
void Aleph::Dft_Load_Arc< GT >::operator() ( std::ifstream &  input,
GT g,
typename GT::Arc a 
)
inline

Load arc from binary stream.

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

Definition at line 263 of file io_graph.H.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().

◆ operator()() [2/2]

template<class GT >
void Aleph::Dft_Load_Arc< GT >::operator() ( std::istream &  input,
GT g,
typename GT::Arc a 
)
inline

Load arc from text stream.

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

Definition at line 275 of file io_graph.H.

References GTArcCommon< ArcInfo >::get_info(), and Aleph::maps().


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