SkelGIS  3.0
skelgis::DPMap_Edges< nodes, edges, T, 1 > Struct Template Reference

first specialization of DPMap_Edges More...

#include <dpmap_edges.hpp>

List of all members.

Public Member Functions

 DPMap_Edges (DDAG< nodes, edges > &dag, const char *file)
 constructor of DPMap_Edges
 DPMap_Edges (DDAG< nodes, edges > &dag, T val)
 constructor of DPMap_Edges
 ~DPMap_Edges ()
 destructor of DPMap_Edges
iterator_dag begin ()
 to get the begin iterator on edges
iterator_dag end ()
 to get the end iterator on edges
T & operator[] (iterator_dag it)
 to get the value of the property map at the iterator position
iterator_dag getSrcNode (iterator_dag it)
 to get an iterator on the source node of the edge
iterator_dag getDstNode (iterator_dag it)
 to get an iterator on the destination node of the edge

Protected Attributes

DPMap_Edges_impl< nodes, edges,
T, 1 > * 
dpmap

Detailed Description

template<bool nodes, bool edges, class T>
struct skelgis::DPMap_Edges< nodes, edges, T, 1 >

first specialization of DPMap_Edges

Template Parameters:
nodesis inheritate from DDAG and needed as a DDAG is gonna be referenced
edgesis inheritate from DDAG and needed as a DDAG is gonna be referenced
Tis the type of data in the property map

The type T is a simple type in this case as float, double, int etc. The overlap is specialized to the value 1 The size is used with its default value 1

Definition at line 38 of file dpmap_edges.hpp.


Constructor & Destructor Documentation

template<bool nodes, bool edges, class T >
skelgis::DPMap_Edges< nodes, edges, T, 1 >::DPMap_Edges ( DDAG< nodes, edges > &  dag,
const char *  file 
) [inline]

constructor of DPMap_Edges

Parameters:
dagis the DDAG object associated to this map
fileis the file with initial values of edges wanted (each line is the value of the node "number of this line" associated in the .dot file)

Definition at line 52 of file dpmap_edges.hpp.

template<bool nodes, bool edges, class T >
skelgis::DPMap_Edges< nodes, edges, T, 1 >::DPMap_Edges ( DDAG< nodes, edges > &  dag,
val 
) [inline]

constructor of DPMap_Edges

Parameters:
dagis the DDAG object associated to this map
valis the default value of edges for the map

Definition at line 63 of file dpmap_edges.hpp.


Member Function Documentation

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges< nodes, edges, T, 1 >::begin ( ) [inline]

to get the begin iterator on edges

Returns:
the begin iterator on edges

Definition at line 80 of file dpmap_edges.hpp.

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges< nodes, edges, T, 1 >::end ( ) [inline]

to get the end iterator on edges

Returns:
the end iterator on edges

Definition at line 87 of file dpmap_edges.hpp.

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges< nodes, edges, T, 1 >::getDstNode ( iterator_dag  it) [inline]

to get an iterator on the destination node of the edge

Returns:
the iterator on the destination node

Definition at line 108 of file dpmap_edges.hpp.

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges< nodes, edges, T, 1 >::getSrcNode ( iterator_dag  it) [inline]

to get an iterator on the source node of the edge

Returns:
the iterator on the source node

Definition at line 101 of file dpmap_edges.hpp.

template<bool nodes, bool edges, class T >
T& skelgis::DPMap_Edges< nodes, edges, T, 1 >::operator[] ( iterator_dag  it) [inline]

to get the value of the property map at the iterator position

Returns:
a reference on the value (to be modified)

Definition at line 94 of file dpmap_edges.hpp.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Defines