SkelGIS  3.0
skelgis::DPMap_Edges_impl< DD, T *, node_access > Struct Template Reference

third specialization of DPMap_Edges_impl More...

#include <dpmap_edges_impl.hpp>

List of all members.

Public Member Functions

 DPMap_Edges_impl (DD &dag, const char *file, const unsigned int s)
 constructor
 DPMap_Edges_impl (DD &dag, T val, const unsigned int s)
 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
void start_communications ()
 start the communication process for the dpmap_edges property
void end_communications ()
 end the communication process for the dpmap_edges property

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
void init_comm ()
 init function for MPI communications

Protected Attributes

DDAG_impl< DD::nod, DD::edg > * ddag
CommunicationsInOut< T > * comm
unsigned int size

Detailed Description

template<class DD, class T, int node_access>
struct skelgis::DPMap_Edges_impl< DD, T *, node_access >

third specialization of DPMap_Edges_impl

Template Parameters:
DDis the type of the DDAG
Tis the type of data in the property map overlap is the overlap size needed to compute the data The type T is specialized with a specific pointer type in this case as float*, double*, int* etc. The overlap is not specialized and is [0,...,size] The size is not specialized, it is the number of elements in the pointer table to map

Definition at line 431 of file dpmap_edges_impl.hpp.


Constructor & Destructor Documentation

template<class DD , class T , int node_access>
skelgis::DPMap_Edges_impl< DD, T *, node_access >::DPMap_Edges_impl ( DD &  dag,
const char *  file,
const unsigned int  s 
) [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 545 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
skelgis::DPMap_Edges_impl< DD, T *, node_access >::DPMap_Edges_impl ( DD &  dag,
val,
const unsigned int  s 
) [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 562 of file dpmap_edges_impl.hpp.


Member Function Documentation

template<class DD , class T , int node_access>
iterator_dag skelgis::DPMap_Edges_impl< DD, T *, node_access >::begin ( ) [inline]

to get the begin iterator on edges

Returns:
the begin iterator on edges

Definition at line 592 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
iterator_dag skelgis::DPMap_Edges_impl< DD, T *, node_access >::end ( ) [inline]

to get the end iterator on edges

Returns:
the end iterator on edges

Definition at line 599 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
void skelgis::DPMap_Edges_impl< DD, T *, node_access >::end_communications ( ) [inline]

end the communication process for the dpmap_edges property

wait for the end of non-blocking communications put received values in the dpmap_edges property

Definition at line 694 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
iterator_dag skelgis::DPMap_Edges_impl< DD, T *, node_access >::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 613 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
iterator_dag skelgis::DPMap_Edges_impl< DD, T *, node_access >::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 606 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
void skelgis::DPMap_Edges_impl< DD, T *, node_access >::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 489 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
void skelgis::DPMap_Edges_impl< DD, T *, node_access >::init ( val) [inline, protected]

init function with default value

Parameters:
valis the value to intiate edges to

Definition at line 505 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
void skelgis::DPMap_Edges_impl< DD, T *, node_access >::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 447 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
void skelgis::DPMap_Edges_impl< DD, T *, node_access >::start_communications ( ) [inline]

start the communication process for the dpmap_edges property

prepare data to send launch non blocking MPI communications

Definition at line 621 of file dpmap_edges_impl.hpp.


Member Data Documentation

template<class DD , class T , int node_access>
CommunicationsInOut<T>* skelgis::DPMap_Edges_impl< DD, T *, node_access >::comm [protected]

size of the pointer mapped to edges

Definition at line 438 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
DDAG_impl<DD::nod,DD::edg>* skelgis::DPMap_Edges_impl< DD, T *, node_access >::ddag [protected]

< ddag is the pointer to the ddag data structure the property is mapped on object to make MPI communications

Definition at line 436 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
unsigned int skelgis::DPMap_Edges_impl< DD, T *, node_access >::dim_edge

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

Definition at line 533 of file dpmap_edges_impl.hpp.

template<class DD , class T , int node_access>
unsigned int skelgis::DPMap_Edges_impl< DD, T *, node_access >::dim_tor

data mapped on edges of the ddag

Definition at line 535 of file dpmap_edges_impl.hpp.


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