SkelGIS  3.0
skelgis::DPMap_Edges< DD, T, 0 > Struct Template Reference

second specialization of DPMap_Edges More...

#include <dpmap_edges.hpp>

List of all members.

Public Types

typedef DPMap_Edges_impl< DD,
T, 0 > 
impl_type

Public Member Functions

 DPMap_Edges (DD &dag, const char *file)
 constructor of DPMap_Edges
 DPMap_Edges (DD &dag, T val)
 constructor of DPMap_Edges
 DPMap_Edges (DPMap_Edges_impl< DD, T, 0 > *p)
 constructor from a DPMap_Edges_impl pointer
 ~DPMap_Edges ()
 destructor of DPMap_Edges
DPMap_Edges_impl< DD, T, 0 > * getDPMap ()
 to get the pointer on dpmap_impl
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

bool ptr_const
DPMap_Edges_impl< DD, T, 0 > * dpmap

Detailed Description

template<class DD, class T>
struct skelgis::DPMap_Edges< DD, T, 0 >

second specialization of DPMap_Edges

Template Parameters:
DDis the type of the DDAG
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 node_access is specialized to the value 0 The size is used with its default value 1

Definition at line 163 of file dpmap_edges.hpp.


Constructor & Destructor Documentation

template<class DD , class T >
skelgis::DPMap_Edges< DD, T, 0 >::DPMap_Edges ( DD &  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 179 of file dpmap_edges.hpp.

template<class DD , class T >
skelgis::DPMap_Edges< DD, T, 0 >::DPMap_Edges ( DD &  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 191 of file dpmap_edges.hpp.

template<class DD , class T >
skelgis::DPMap_Edges< DD, T, 0 >::DPMap_Edges ( DPMap_Edges_impl< DD, T, 0 > *  p) [inline]

constructor from a DPMap_Edges_impl pointer

Parameters:
pointerto a DPMap_Edges_impl

Definition at line 202 of file dpmap_edges.hpp.


Member Function Documentation

template<class DD , class T >
iterator_dag skelgis::DPMap_Edges< DD, T, 0 >::begin ( ) [inline]

to get the begin iterator on edges

Returns:
the begin iterator on edges

Definition at line 231 of file dpmap_edges.hpp.

template<class DD , class T >
iterator_dag skelgis::DPMap_Edges< DD, T, 0 >::end ( ) [inline]

to get the end iterator on edges

Returns:
the end iterator on edges

Definition at line 238 of file dpmap_edges.hpp.

template<class DD , class T >
DPMap_Edges_impl<DD,T,0>* skelgis::DPMap_Edges< DD, T, 0 >::getDPMap ( ) [inline]

to get the pointer on dpmap_impl

Returns:
the dpmap implementation pointer

Definition at line 224 of file dpmap_edges.hpp.

template<class DD , class T >
iterator_dag skelgis::DPMap_Edges< DD, T, 0 >::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 259 of file dpmap_edges.hpp.

template<class DD , class T >
iterator_dag skelgis::DPMap_Edges< DD, T, 0 >::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 252 of file dpmap_edges.hpp.

template<class DD , class T >
T& skelgis::DPMap_Edges< DD, T, 0 >::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 245 of file dpmap_edges.hpp.


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