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

second specialization of DPMap_Nodes_impl More...

#include <dpmap_nodes_impl.hpp>

List of all members.

Public Member Functions

 DPMap_Nodes_impl (DD &dag, const char *file)
 constructor
 DPMap_Nodes_impl (DD &dag, T val)
 constructor of DPMap_Nodes
 ~DPMap_Nodes_impl ()
 destructor of DPMap_Nodes
iterator_dag begin_roots ()
 to get the begin iterator on roots nodes
iterator_dag end_roots ()
 to get the end iterator on roots nodes
iterator_dag begin_leafs ()
 to get the begin iterator on leafs nodes
iterator_dag end_leafs ()
 to get the end iterator on leafs nodes
iterator_dag begin_comm ()
 to get the begin iterator on nodes with communication with other processors
iterator_dag end_comm ()
 to get the end iterator on nodes with communication with other processors
iterator_dag begin_loc ()
 to get the begin iterator on nodes without communication with other processors
iterator_dag end_loc ()
 to get the end iterator on nodes without communication with other processors
iterator_dag begin_in ()
 to get the begin iterator on inside nodes (i.e. nodes that are not roots or leafs = loc and comm nodes)
iterator_dag end_in ()
 to get the end iterator on inside nodes (i.e. nodes that are not roots or leafs = loc and comm nodes)
std::vector< iterator_daggetInEdges (iterator_dag it)
 to get a vector of iterator on input edges for the node it
std::vector< iterator_daggetOutEdges (iterator_dag it)
 to get a vector of iterator on output edges for the node it
std::vector< iterator_daggetInNodes (iterator_dag it)
 to get a vector of iterator on input nodes for the node it
std::vector< iterator_daggetOutNodes (iterator_dag it)
 to get a vector of iterator on output nodes for the node it
void start_communications ()
 start the communication process for the dpmap_nodes property
void end_communications ()
 end the communication process for the dpmap_nodes property

Public Attributes

unsigned int dim_node
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< DD::nod, DD::edg > * ddag

Detailed Description

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

second specialization of DPMap_Nodes_impl

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 overlap is specialized to the value 0

Definition at line 354 of file dpmap_nodes_impl.hpp.


Constructor & Destructor Documentation

template<class DD , class T >
skelgis::DPMap_Nodes_impl< DD, T, 0 >::DPMap_Nodes_impl ( DD &  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 nodes (each line is the value of the node "number of this line" associated in the .dot file)

Definition at line 426 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
skelgis::DPMap_Nodes_impl< DD, T, 0 >::DPMap_Nodes_impl ( DD &  dag,
val 
) [inline]

constructor of DPMap_Nodes

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

Definition at line 440 of file dpmap_nodes_impl.hpp.


Member Function Documentation

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

to get the begin iterator on nodes with communication with other processors

Returns:
the begin iterator on communication nodes

Definition at line 491 of file dpmap_nodes_impl.hpp.

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

to get the begin iterator on inside nodes (i.e. nodes that are not roots or leafs = loc and comm nodes)

Returns:
the begin iterator on inside nodes

Definition at line 519 of file dpmap_nodes_impl.hpp.

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

to get the begin iterator on leafs nodes

Returns:
the begin iterator on leafs nodes

Definition at line 477 of file dpmap_nodes_impl.hpp.

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

to get the begin iterator on nodes without communication with other processors

Returns:
the begin iterator on local nodes

Definition at line 505 of file dpmap_nodes_impl.hpp.

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

to get the begin iterator on roots nodes

Returns:
the begin iterator on roots nodes

Definition at line 463 of file dpmap_nodes_impl.hpp.

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

to get the end iterator on nodes with communication with other processors

Returns:
the end iterator on communication nodes

Definition at line 498 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
void skelgis::DPMap_Nodes_impl< DD, T, 0 >::end_communications ( ) [inline]

end the communication process for the dpmap_nodes property

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

Definition at line 574 of file dpmap_nodes_impl.hpp.

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

to get the end iterator on inside nodes (i.e. nodes that are not roots or leafs = loc and comm nodes)

Returns:
the end iterator on inside nodes

Definition at line 526 of file dpmap_nodes_impl.hpp.

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

to get the end iterator on leafs nodes

Returns:
the end iterator on leafs nodes

Definition at line 484 of file dpmap_nodes_impl.hpp.

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

to get the end iterator on nodes without communication with other processors

Returns:
the end iterator on local nodes

Definition at line 512 of file dpmap_nodes_impl.hpp.

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

to get the end iterator on roots nodes

Returns:
the end iterator on roots nodes

Definition at line 470 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
std::vector<iterator_dag> skelgis::DPMap_Nodes_impl< DD, T, 0 >::getInEdges ( iterator_dag  it) [inline]

to get a vector of iterator on input edges for the node it

Parameters:
itis the iterator on the node to get input edges
Returns:
a vector of iterator

Definition at line 534 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
std::vector<iterator_dag> skelgis::DPMap_Nodes_impl< DD, T, 0 >::getInNodes ( iterator_dag  it) [inline]

to get a vector of iterator on input nodes for the node it

Parameters:
itis the iterator on the node to get input nodes
Returns:
a vector of iterator

Definition at line 550 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
std::vector<iterator_dag> skelgis::DPMap_Nodes_impl< DD, T, 0 >::getOutEdges ( iterator_dag  it) [inline]

to get a vector of iterator on output edges for the node it

Parameters:
itis the iterator on the node to get output edges
Returns:
a vector of iterator

Definition at line 542 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
std::vector<iterator_dag> skelgis::DPMap_Nodes_impl< DD, T, 0 >::getOutNodes ( iterator_dag  it) [inline]

to get a vector of iterator on output nodes for the node it

Parameters:
itis the iterator on the node to get output nodes
Returns:
a vector of iterator

Definition at line 558 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
void skelgis::DPMap_Nodes_impl< DD, T, 0 >::init ( const char *  file) [inline, protected]

init function with values in file

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

Definition at line 389 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
void skelgis::DPMap_Nodes_impl< DD, T, 0 >::init ( val) [inline, protected]

init function with default value

Parameters:
valis the value to intiate nodes to

Definition at line 402 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
void skelgis::DPMap_Nodes_impl< DD, T, 0 >::read ( const char *  file) [inline, protected]

to read input initialize file

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

Definition at line 366 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
void skelgis::DPMap_Nodes_impl< DD, T, 0 >::start_communications ( ) [inline]

start the communication process for the dpmap_nodes property

prepare data to send launch non blocking MPI communications

Definition at line 566 of file dpmap_nodes_impl.hpp.


Member Data Documentation

template<class DD , class T >
DDAG_impl<DD::nod,DD::edg>* skelgis::DPMap_Nodes_impl< DD, T, 0 >::ddag [protected]

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

Definition at line 358 of file dpmap_nodes_impl.hpp.

template<class DD , class T >
unsigned int skelgis::DPMap_Nodes_impl< DD, T, 0 >::dim_node

< dim_node is the number of local nodes data mapped on nodes of the ddag

Definition at line 416 of file dpmap_nodes_impl.hpp.


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