Yet Another eXchange Tool  DO_NOT_EDIT_HERE
xt_xmap_internal.h
Go to the documentation of this file.
1 
13 /*
14  * Keywords:
15  * Maintainer: Jörg Behrens <behrens@dkrz.de>
16  * Moritz Hanke <hanke@dkrz.de>
17  * Thomas Jahns <jahns@dkrz.de>
18  * URL: https://doc.redmine.dkrz.de/yaxt/html/
19  *
20  * Redistribution and use in source and binary forms, with or without
21  * modification, are permitted provided that the following conditions are
22  * met:
23  *
24  * Redistributions of source code must retain the above copyright notice,
25  * this list of conditions and the following disclaimer.
26  *
27  * Redistributions in binary form must reproduce the above copyright
28  * notice, this list of conditions and the following disclaimer in the
29  * documentation and/or other materials provided with the distribution.
30  *
31  * Neither the name of the DKRZ GmbH nor the names of its contributors
32  * may be used to endorse or promote products derived from this software
33  * without specific prior written permission.
34  *
35  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
36  * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
37  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
38  * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
39  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
40  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
41  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
42  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
43  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
44  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
45  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46  */
47 #ifndef XT_XMAP_INTERNAL_H
48 #define XT_XMAP_INTERNAL_H
49 
50 #ifdef HAVE_CONFIG_H
51 #include <config.h>
52 #endif
53 
54 #include <mpi.h>
55 
56 #include "xt/xt_xmap.h"
57 
59  int (*next)(Xt_xmap_iter iter);
60  int (*get_rank)(Xt_xmap_iter iter);
61  int const * (*get_transfer_pos)(Xt_xmap_iter iter);
63  const struct Xt_pos_ext *(*get_transfer_pos_ext)(Xt_xmap_iter iter);
65  void (*delete)(Xt_xmap_iter iter);
66 };
67 
68 struct Xt_xmap_iter_ {
69  const struct Xt_xmap_iter_vtable * vtable;
70 };
71 
72 
74 
75  MPI_Comm (*get_communicator)(Xt_xmap);
76  int (*get_num_destinations)(Xt_xmap);
77  int (*get_num_sources)(Xt_xmap);
78  void (*get_destination_ranks)(Xt_xmap, int*);
79  void (*get_source_ranks)(Xt_xmap, int*);
80  Xt_xmap_iter (*get_out_iterator)(Xt_xmap);
81  Xt_xmap_iter (*get_in_iterator)(Xt_xmap);
82  Xt_xmap (*copy)(Xt_xmap);
83  void (*delete)(Xt_xmap);
84  int (*get_max_src_pos)(Xt_xmap);
85  int (*get_max_dst_pos)(Xt_xmap);
86 };
87 
88 struct Xt_xmap_ {
89  const struct Xt_xmap_vtable * vtable;
90 };
91 
92 #endif
93 
94 /*
95  * Local Variables:
96  * c-basic-offset: 2
97  * coding: utf-8
98  * indent-tabs-mode: nil
99  * show-trailing-whitespace: t
100  * require-trailing-newline: t
101  * End:
102  */
struct Xt_xmap_ * Xt_xmap
Definition: xt_core.h:81
int(* get_num_transfer_pos)(Xt_xmap_iter iter)
int(* next)(Xt_xmap_iter iter)
struct Xt_xmap_iter_ * Xt_xmap_iter
Definition: xt_xmap.h:72
exchange map declarations
int(* get_rank)(Xt_xmap_iter iter)
const struct Xt_xmap_iter_vtable * vtable
const struct Xt_xmap_vtable * vtable
int(* get_num_transfer_pos_ext)(Xt_xmap_iter iter)
int MPI_Comm
Definition: core.h:64