Public Types | Public Member Functions | Public Attributes

mln::internal::data< util::graph > Struct Template Reference

Data structure for mln::image2d<T>. More...

#include <graph.hh>

List of all members.

Public Types

typedef std::set
< util::ord_pair
< util::vertex_id_t > > 
edges_set_t
typedef std::vector
< util::ord_pair
< util::vertex_id_t > > 
edges_t
typedef util::graph G
typedef std::vector
< std::vector< util::edge_id_t > > 
vertices_t

Public Member Functions

 data ()
 data (unsigned nvertices)
 Constructor.
 ~data ()

Public Attributes

edges_t edges_
 The edges.
edges_set_t edges_set_
 An index of the set of edges, for fast-access purpose.
vertices_t vertices_
 The vertices.

Detailed Description

template<>
struct mln::internal::data< util::graph >

Data structure for mln::image2d<T>.


Member Typedef Documentation

typedef std::set<util::ord_pair<util::vertex_id_t> > mln::internal::data< util::graph >::edges_set_t
typedef std::vector<util::ord_pair<util::vertex_id_t> > mln::internal::data< util::graph >::edges_t
typedef util::graph mln::internal::data< util::graph >::G
typedef std::vector<std::vector<util::edge_id_t> > mln::internal::data< util::graph >::vertices_t

Constructor & Destructor Documentation

mln::internal::data< util::graph >::data (  )  [inline]
mln::internal::data< util::graph >::data ( unsigned  nvertices  )  [inline]

Constructor.

Allocate enough space in order to support nvertices vertices.

mln::internal::data< util::graph >::~data (  )  [inline]

Member Data Documentation

edges_t mln::internal::data< util::graph >::edges_

The edges.

edges_set_t mln::internal::data< util::graph >::edges_set_

An index of the set of edges, for fast-access purpose.

vertices_t mln::internal::data< util::graph >::vertices_

The vertices.