Yet Another eXchange Tool  DO_NOT_EDIT_HERE
xt_xmap.h
Go to the documentation of this file.
1 
12 /*
13  * Keywords:
14  * Maintainer: Jörg Behrens <behrens@dkrz.de>
15  * Moritz Hanke <hanke@dkrz.de>
16  * Thomas Jahns <jahns@dkrz.de>
17  * URL: https://doc.redmine.dkrz.de/yaxt/html/
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions are
21  * met:
22  *
23  * Redistributions of source code must retain the above copyright notice,
24  * this list of conditions and the following disclaimer.
25  *
26  * Redistributions in binary form must reproduce the above copyright
27  * notice, this list of conditions and the following disclaimer in the
28  * documentation and/or other materials provided with the distribution.
29  *
30  * Neither the name of the DKRZ GmbH nor the names of its contributors
31  * may be used to endorse or promote products derived from this software
32  * without specific prior written permission.
33  *
34  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
35  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
36  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
37  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
38  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
39  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
41  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
42  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
43  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45  */
46 
47 #ifndef XT_XMAP_H
48 #define XT_XMAP_H
49 
50 #ifdef HAVE_CONFIG_H
51 #include <config.h>
52 #endif
53 
54 #include "xt/xt_core.h"
55 
72 typedef struct Xt_xmap_iter_ *Xt_xmap_iter;
73 
80 
90 
100 
113 void xt_xmap_get_destination_ranks(Xt_xmap xmap, int * ranks);
114 
126 void xt_xmap_get_source_ranks(Xt_xmap xmap, int * ranks);
127 
136 Xt_xmap_iter xt_xmap_get_out_iterator(Xt_xmap xmap);
137 
146 Xt_xmap_iter xt_xmap_get_in_iterator(Xt_xmap xmap);
147 
154 int xt_xmap_iterator_next(Xt_xmap_iter iter);
155 
162 int xt_xmap_iterator_get_rank(Xt_xmap_iter iter);
163 
171 int const * xt_xmap_iterator_get_transfer_pos(Xt_xmap_iter iter);
172 
181 int xt_xmap_iterator_get_num_transfer_pos(Xt_xmap_iter iter);
182 
190 const struct Xt_pos_ext* xt_xmap_iterator_get_transfer_pos_ext(Xt_xmap_iter iter);
191 
200 int xt_xmap_iterator_get_num_transfer_pos_ext(Xt_xmap_iter iter);
201 
207 void xt_xmap_iterator_delete(Xt_xmap_iter iter);
208 
215 
221 void xt_xmap_delete(Xt_xmap xmap);
222 
230 
238 
247 int xt_xmap_is_bijective(Xt_xmap xmap);
248 
249 #endif // XT_XMAP_H
250 
251 /*
252  * Local Variables:
253  * c-basic-offset: 2
254  * coding: utf-8
255  * indent-tabs-mode: nil
256  * show-trailing-whitespace: t
257  * require-trailing-newline: t
258  * End:
259  */
base definitions header file
void xt_xmap_get_source_ranks(Xt_xmap xmap, int *ranks)
Definition: xt_xmap.c:75
Xt_xmap_iter xt_xmap_get_out_iterator(Xt_xmap xmap)
Definition: xt_xmap.c:95
int xt_xmap_get_num_sources(Xt_xmap xmap)
Definition: xt_xmap.c:65
int xt_xmap_is_bijective(Xt_xmap xmap)
const struct Xt_pos_ext * xt_xmap_iterator_get_transfer_pos_ext(Xt_xmap_iter iter)
Definition: xt_xmap.c:121
int xt_xmap_get_max_dst_pos(Xt_xmap xmap)
Definition: xt_xmap.c:138
int xt_xmap_iterator_get_num_transfer_pos(Xt_xmap_iter iter)
Definition: xt_xmap.c:115
int xt_xmap_iterator_get_num_transfer_pos_ext(Xt_xmap_iter iter)
Definition: xt_xmap.c:125
void xt_xmap_iterator_delete(Xt_xmap_iter iter)
Definition: xt_xmap.c:129
Xt_xmap xt_xmap_copy(Xt_xmap xmap)
Definition: xt_xmap.c:80
void xt_xmap_delete(Xt_xmap xmap)
Definition: xt_xmap.c:85
struct Xt_xmap_iter_ * Xt_xmap_iter
Definition: xt_xmap.h:72
int xt_xmap_iterator_get_rank(Xt_xmap_iter iter)
Definition: xt_xmap.c:105
int xt_xmap_get_num_destinations(Xt_xmap xmap)
Definition: xt_xmap.c:60
Xt_xmap_iter xt_xmap_get_in_iterator(Xt_xmap xmap)
Definition: xt_xmap.c:90
void xt_xmap_get_destination_ranks(Xt_xmap xmap, int *ranks)
Definition: xt_xmap.c:70
int const * xt_xmap_iterator_get_transfer_pos(Xt_xmap_iter iter)
Definition: xt_xmap.c:110
MPI_Comm xt_xmap_get_communicator(Xt_xmap xmap)
Definition: xt_xmap.c:55
int xt_xmap_iterator_next(Xt_xmap_iter iter)
Definition: xt_xmap.c:100
int xt_xmap_get_max_src_pos(Xt_xmap xmap)
Definition: xt_xmap.c:134
int MPI_Comm
Definition: core.h:64