#include <dimacs.hpp>
Public Types | |
enum | incr_mode { edge, edge_weight } |
typedef std::size_t | vertices_size_type |
typedef std::size_t | edges_size_type |
typedef double | vertex_weight_type |
typedef double | edge_weight_type |
typedef std::pair < vertices_size_type, vertices_size_type > | edge_type |
Public Member Functions | |
dimacs_basic_reader (std::istream &in, bool want_weights=true) | |
dimacs_basic_reader () | |
edge_type | edge_deref () |
edge_type * | edge_ref () |
edge_weight_type | edge_weight_deref () |
dimacs_basic_reader | incr (incr_mode mode) |
bool | done_edges () |
bool | done_edge_weights () |
vertices_size_type | n_vertices () |
vertices_size_type | processed_edges () |
vertices_size_type | processed_edge_weights () |
vertices_size_type | n_edges () |
Protected Member Functions | |
bool | read_edge_line (char *linebuf, int &from, int &to, int &weight) |
Protected Attributes | |
std::queue< edge_type > | read_edges |
std::queue< edge_weight_type > | read_edge_weights |
std::istream & | inpt |
std::string | buf |
vertices_size_type | num_vertices |
vertices_size_type | num_edges |
vertices_size_type | seen_edges |
bool | want_weights |
typedef std::pair<vertices_size_type, vertices_size_type> boost::graph::dimacs_basic_reader::edge_type |
typedef double boost::graph::dimacs_basic_reader::edge_weight_type |
typedef std::size_t boost::graph::dimacs_basic_reader::edges_size_type |
typedef double boost::graph::dimacs_basic_reader::vertex_weight_type |
typedef std::size_t boost::graph::dimacs_basic_reader::vertices_size_type |
|
inline |
References buf, edge_weight, boost::container::getline(), incr(), inpt, num_edges, num_vertices, read_edge_weights, and boost::throw_exception().
|
inline |
|
inline |
References inpt, and read_edge_weights.
|
inline |
References inpt, and read_edges.
|
inline |
References BOOST_ASSERT, and read_edges.
|
inline |
References BOOST_ASSERT, and read_edges.
|
inline |
References BOOST_ASSERT, and read_edge_weights.
|
inline |
References BOOST_ASSERT, buf, edge, edge_weight, boost::container::getline(), inpt, num_edges, read_edge_line(), read_edge_weights, read_edges, seen_edges, boost::graph::source(), boost::throw_exception(), and want_weights.
Referenced by dimacs_basic_reader().
|
inline |
References num_edges.
|
inline |
References num_vertices.
|
inline |
References read_edge_weights, and seen_edges.
|
inline |
References read_edges, and seen_edges.
|
inlineprotected |
References want_weights.
Referenced by incr().
|
protected |
Referenced by dimacs_basic_reader(), and incr().
|
protected |
Referenced by dimacs_basic_reader(), done_edge_weights(), done_edges(), and incr().
|
protected |
Referenced by dimacs_basic_reader(), incr(), and n_edges().
|
protected |
Referenced by dimacs_basic_reader(), and n_vertices().
|
protected |
Referenced by dimacs_basic_reader(), done_edge_weights(), edge_weight_deref(), incr(), and processed_edge_weights().
|
protected |
Referenced by done_edges(), edge_deref(), edge_ref(), incr(), and processed_edges().
|
protected |
Referenced by incr(), processed_edge_weights(), and processed_edges().
|
protected |
Referenced by incr(), and read_edge_line().