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

first specialization of DPMap_Edges_impl More...

#include <dpmap_edges_impl.hpp>

List of all members.

Public Member Functions

 DPMap_Edges_impl (DDAG< nodes, edges > &dag, const char *file)
 constructor
 DPMap_Edges_impl (DDAG< nodes, edges > &dag, T val)
 constructor of DPMap_Edges
 ~DPMap_Edges_impl ()
 destructor of DPMap_Edges
iterator_dag begin ()
 to get the begin iterator on edges
iterator_dag end ()
 to get the end iterator on edges
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

Public Attributes

unsigned int dim_edge
unsigned int dim_tor
T * data

Protected Member Functions

void read (const char *file)
 to read input initialize file
void init (const char *file)
 init function with values in file
void init (T val)
 init function with default value

Protected Attributes

DDAG_impl< nodes, edges > * ddag

Detailed Description

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

first specialization of DPMap_Edges_impl

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 39 of file dpmap_edges_impl.hpp.


Constructor & Destructor Documentation

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

constructor

Parameters:
dagis the DDAG the property is going to mapped
fileis the file of intial values for this property on edges (each line is the value of the edge "number of this line" associated in the .dot file)

Definition at line 116 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::DPMap_Edges_impl ( 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 130 of file dpmap_edges_impl.hpp.


Member Function Documentation

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

to get the begin iterator on edges

Returns:
the begin iterator on edges

Definition at line 153 of file dpmap_edges_impl.hpp.

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

to get the end iterator on edges

Returns:
the end iterator on edges

Definition at line 160 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges_impl< 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 174 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
iterator_dag skelgis::DPMap_Edges_impl< 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 167 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
void skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::init ( const char *  file) [inline, protected]

init function with values in file

Parameters:
fileis the file of intial values for this property on edges (each line is the value of the node "number of this line" associated in the .dot file)

Definition at line 75 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
void skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::init ( val) [inline, protected]

init function with default value

Parameters:
valis the value to intiate edges to

Definition at line 89 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
void skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::read ( const char *  file) [inline, protected]

to read input initialize file

Parameters:
fileis the file of intial values for this property on edges (each line is the value of the edge "number of this line" associated in the .dot file)

Definition at line 52 of file dpmap_edges_impl.hpp.


Member Data Documentation

template<bool nodes, bool edges, class T >
DDAG_impl<nodes,edges>* skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::ddag [protected]

< ddag is the pointer to the ddag data structure the property is mapped on

Definition at line 44 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
unsigned int skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::dim_edge

< dim_edge is the number of local edges dim_tor is the number of additionnal nodes to receive

Definition at line 104 of file dpmap_edges_impl.hpp.

template<bool nodes, bool edges, class T >
unsigned int skelgis::DPMap_Edges_impl< nodes, edges, T, 1 >::dim_tor

data mapped on edges of the ddag

Definition at line 106 of file dpmap_edges_impl.hpp.


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