|
| graph (const graph &)=delete |
|
graph & | operator= (const graph &)=delete |
|
graph_< VERTEX_VALUE, EDGE_VALUE >::ref_edge | connect (const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex &v1, const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex &v2, const typename graph_< VERTEX_VALUE, EDGE_VALUE >::edge_value_type &v) |
|
graph_< VERTEX_VALUE, EDGE_VALUE >::ref_edge | connect (const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex &v1, const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex &v2) |
|
void | write (std::ostream &os) |
|
void | read (std::istream &is) |
|
|
std::function< void(std::ostream &, const VERTEX_VALUE &)> | vertex_to_stream |
|
std::function< void(std::ostream &, const EDGE_VALUE &)> | edge_to_stream |
|
std::function< void(std::istream &, VERTEX_VALUE &)> | vertex_from_stream |
|
std::function< void(std::istream &, EDGE_VALUE &)> | edge_from_stream |
|
◆ connect() [1/2]
template<typename VERTEX_VALUE , typename EDGE_VALUE >
graph_<VERTEX_VALUE, EDGE_VALUE>::ref_edge vq3::graph< VERTEX_VALUE, EDGE_VALUE >::connect |
( |
const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex & |
v1, |
|
|
const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex & |
v2 |
|
) |
| |
|
inline |
Add a default-valued edge. The vertex references have to be vertices that actually belongs to the graph.
◆ connect() [2/2]
template<typename VERTEX_VALUE , typename EDGE_VALUE >
graph_<VERTEX_VALUE, EDGE_VALUE>::ref_edge vq3::graph< VERTEX_VALUE, EDGE_VALUE >::connect |
( |
const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex & |
v1, |
|
|
const typename graph_< VERTEX_VALUE, EDGE_VALUE >::ref_vertex & |
v2, |
|
|
const typename graph_< VERTEX_VALUE, EDGE_VALUE >::edge_value_type & |
v |
|
) |
| |
|
inline |
Add an edge. The vertex references have to be vertices that actually belongs to the graph.
◆ read()
template<typename VERTEX_VALUE , typename EDGE_VALUE >
void vq3::graph< VERTEX_VALUE, EDGE_VALUE >::read |
( |
std::istream & |
is | ) |
|
|
inline |
This reads the graph from a stream. You can use the >> operator as well.
◆ write()
template<typename VERTEX_VALUE , typename EDGE_VALUE >
void vq3::graph< VERTEX_VALUE, EDGE_VALUE >::write |
( |
std::ostream & |
os | ) |
|
|
inline |
This writes the graph into a stream. You can use the << operator as well.
The documentation for this class was generated from the following file: