[177] | 1 | #ifndef _DECL_Hello_H_ |
---|
| 2 | #define _DECL_Hello_H_ |
---|
| 3 | #include "charm++.h" |
---|
| 4 | /* DECLS: readonly CProxy_HelloMain mainProxy; |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | /* DECLS: mainchare HelloMain: Chare{ |
---|
| 8 | HelloMain(CkArgMsg* impl_msg); |
---|
| 9 | void PrintDone(void); |
---|
| 10 | }; |
---|
| 11 | */ |
---|
| 12 | class HelloMain; |
---|
| 13 | class CkIndex_HelloMain; |
---|
| 14 | class CProxy_HelloMain; |
---|
| 15 | /* --------------- index object ------------------ */ |
---|
| 16 | class CkIndex_HelloMain:public CProxy_Chare{ |
---|
| 17 | public: |
---|
| 18 | typedef HelloMain local_t; |
---|
| 19 | typedef CkIndex_HelloMain index_t; |
---|
| 20 | typedef CProxy_HelloMain proxy_t; |
---|
| 21 | typedef CProxy_HelloMain element_t; |
---|
| 22 | |
---|
| 23 | static int __idx; |
---|
| 24 | static void __register(const char *s, size_t size); |
---|
| 25 | /* DECLS: HelloMain(CkArgMsg* impl_msg); |
---|
| 26 | */ |
---|
| 27 | static int __idx_HelloMain_CkArgMsg; |
---|
| 28 | static int ckNew(CkArgMsg* impl_msg) { return __idx_HelloMain_CkArgMsg; } |
---|
| 29 | static void _call_HelloMain_CkArgMsg(void* impl_msg,HelloMain* impl_obj); |
---|
| 30 | |
---|
| 31 | /* DECLS: void PrintDone(void); |
---|
| 32 | */ |
---|
| 33 | static int __idx_PrintDone_void; |
---|
| 34 | static int PrintDone(void) { return __idx_PrintDone_void; } |
---|
| 35 | static void _call_PrintDone_void(void* impl_msg,HelloMain* impl_obj); |
---|
| 36 | |
---|
| 37 | }; |
---|
| 38 | /* --------------- element proxy ------------------ */ |
---|
| 39 | class CProxy_HelloMain:public CProxy_Chare{ |
---|
| 40 | public: |
---|
| 41 | typedef HelloMain local_t; |
---|
| 42 | typedef CkIndex_HelloMain index_t; |
---|
| 43 | typedef CProxy_HelloMain proxy_t; |
---|
| 44 | typedef CProxy_HelloMain element_t; |
---|
| 45 | |
---|
| 46 | CProxy_HelloMain(void) {}; |
---|
| 47 | CProxy_HelloMain(CkChareID __cid) : CProxy_Chare(__cid){ } |
---|
| 48 | CProxy_HelloMain(const Chare *c) : CProxy_Chare(c){ } |
---|
| 49 | CK_DISAMBIG_CHARE(CProxy_Chare) |
---|
| 50 | void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL) { |
---|
| 51 | CProxy_Chare::ckDelegate(dTo,dPtr); |
---|
| 52 | } |
---|
| 53 | void ckUndelegate(void) { |
---|
| 54 | CProxy_Chare::ckUndelegate(); |
---|
| 55 | } |
---|
| 56 | void pup(PUP::er &p) { |
---|
| 57 | CProxy_Chare::pup(p); |
---|
| 58 | } |
---|
| 59 | void ckSetChareID(const CkChareID &c) { |
---|
| 60 | CProxy_Chare::ckSetChareID(c); |
---|
| 61 | } |
---|
| 62 | HelloMain *ckLocal(void) const |
---|
| 63 | { return (HelloMain *)CkLocalChare(&ckGetChareID()); } |
---|
| 64 | /* DECLS: HelloMain(CkArgMsg* impl_msg); |
---|
| 65 | */ |
---|
| 66 | static CkChareID ckNew(CkArgMsg* impl_msg, int onPE=CK_PE_ANY); |
---|
| 67 | static void ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int onPE=CK_PE_ANY); |
---|
| 68 | CProxy_HelloMain(CkArgMsg* impl_msg, int onPE=CK_PE_ANY); |
---|
| 69 | |
---|
| 70 | /* DECLS: void PrintDone(void); |
---|
| 71 | */ |
---|
| 72 | void PrintDone(void); |
---|
| 73 | |
---|
| 74 | }; |
---|
| 75 | PUPmarshall(CProxy_HelloMain) |
---|
| 76 | typedef CBaseT<Chare,CProxy_HelloMain> CBase_HelloMain; |
---|
| 77 | |
---|
| 78 | /* DECLS: group HelloGroup: IrrGroup{ |
---|
| 79 | HelloGroup(void); |
---|
| 80 | }; |
---|
| 81 | */ |
---|
| 82 | class HelloGroup; |
---|
| 83 | class CkIndex_HelloGroup; |
---|
| 84 | class CProxy_HelloGroup; |
---|
| 85 | class CProxyElement_HelloGroup; |
---|
| 86 | class CProxySection_HelloGroup; |
---|
| 87 | /* --------------- index object ------------------ */ |
---|
| 88 | class CkIndex_HelloGroup:public CProxyElement_IrrGroup{ |
---|
| 89 | public: |
---|
| 90 | typedef HelloGroup local_t; |
---|
| 91 | typedef CkIndex_HelloGroup index_t; |
---|
| 92 | typedef CProxy_HelloGroup proxy_t; |
---|
| 93 | typedef CProxyElement_HelloGroup element_t; |
---|
| 94 | typedef CProxySection_HelloGroup section_t; |
---|
| 95 | |
---|
| 96 | static int __idx; |
---|
| 97 | static void __register(const char *s, size_t size); |
---|
| 98 | /* DECLS: HelloGroup(void); |
---|
| 99 | */ |
---|
| 100 | static int __idx_HelloGroup_void; |
---|
| 101 | static int ckNew(void) { return __idx_HelloGroup_void; } |
---|
| 102 | static void _call_HelloGroup_void(void* impl_msg,HelloGroup* impl_obj); |
---|
| 103 | |
---|
| 104 | }; |
---|
| 105 | /* --------------- element proxy ------------------ */ |
---|
| 106 | class CProxyElement_HelloGroup: public CProxyElement_IrrGroup{ |
---|
| 107 | public: |
---|
| 108 | typedef HelloGroup local_t; |
---|
| 109 | typedef CkIndex_HelloGroup index_t; |
---|
| 110 | typedef CProxy_HelloGroup proxy_t; |
---|
| 111 | typedef CProxyElement_HelloGroup element_t; |
---|
| 112 | typedef CProxySection_HelloGroup section_t; |
---|
| 113 | |
---|
| 114 | CProxyElement_HelloGroup(void) {} |
---|
| 115 | CProxyElement_HelloGroup(const IrrGroup *g) : CProxyElement_IrrGroup(g){ } |
---|
| 116 | CProxyElement_HelloGroup(CkGroupID _gid,int _onPE,CK_DELCTOR_PARAM) : CProxyElement_IrrGroup(_gid,_onPE,CK_DELCTOR_ARGS){ } |
---|
| 117 | CProxyElement_HelloGroup(CkGroupID _gid,int _onPE) : CProxyElement_IrrGroup(_gid,_onPE){ } |
---|
| 118 | CK_DISAMBIG_GROUP_ELEMENT(CProxyElement_IrrGroup) |
---|
| 119 | void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL) { |
---|
| 120 | CProxyElement_IrrGroup::ckDelegate(dTo,dPtr); |
---|
| 121 | } |
---|
| 122 | void ckUndelegate(void) { |
---|
| 123 | CProxyElement_IrrGroup::ckUndelegate(); |
---|
| 124 | } |
---|
| 125 | void pup(PUP::er &p) { |
---|
| 126 | CProxyElement_IrrGroup::pup(p); |
---|
| 127 | } |
---|
| 128 | void ckSetGroupID(CkGroupID g) { |
---|
| 129 | CProxyElement_IrrGroup::ckSetGroupID(g); |
---|
| 130 | } |
---|
| 131 | HelloGroup* ckLocalBranch(void) const { |
---|
| 132 | return ckLocalBranch(ckGetGroupID()); |
---|
| 133 | } |
---|
| 134 | static HelloGroup* ckLocalBranch(CkGroupID gID) { |
---|
| 135 | return (HelloGroup*)CkLocalBranch(gID); |
---|
| 136 | } |
---|
| 137 | /* DECLS: HelloGroup(void); |
---|
| 138 | */ |
---|
| 139 | |
---|
| 140 | }; |
---|
| 141 | PUPmarshall(CProxyElement_HelloGroup) |
---|
| 142 | /* ---------------- collective proxy -------------- */ |
---|
| 143 | class CProxy_HelloGroup: public CProxy_IrrGroup{ |
---|
| 144 | public: |
---|
| 145 | typedef HelloGroup local_t; |
---|
| 146 | typedef CkIndex_HelloGroup index_t; |
---|
| 147 | typedef CProxy_HelloGroup proxy_t; |
---|
| 148 | typedef CProxyElement_HelloGroup element_t; |
---|
| 149 | typedef CProxySection_HelloGroup section_t; |
---|
| 150 | |
---|
| 151 | CProxy_HelloGroup(void) {} |
---|
| 152 | CProxy_HelloGroup(const IrrGroup *g) : CProxy_IrrGroup(g){ } |
---|
| 153 | CProxy_HelloGroup(CkGroupID _gid,CK_DELCTOR_PARAM) : CProxy_IrrGroup(_gid,CK_DELCTOR_ARGS){ } |
---|
| 154 | CProxy_HelloGroup(CkGroupID _gid) : CProxy_IrrGroup(_gid){ } |
---|
| 155 | CProxyElement_HelloGroup operator[](int onPE) const |
---|
| 156 | {return CProxyElement_HelloGroup(ckGetGroupID(),onPE,CK_DELCTOR_CALL);} |
---|
| 157 | CK_DISAMBIG_GROUP(CProxy_IrrGroup) |
---|
| 158 | void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL) { |
---|
| 159 | CProxy_IrrGroup::ckDelegate(dTo,dPtr); |
---|
| 160 | } |
---|
| 161 | void ckUndelegate(void) { |
---|
| 162 | CProxy_IrrGroup::ckUndelegate(); |
---|
| 163 | } |
---|
| 164 | void pup(PUP::er &p) { |
---|
| 165 | CProxy_IrrGroup::pup(p); |
---|
| 166 | } |
---|
| 167 | void ckSetGroupID(CkGroupID g) { |
---|
| 168 | CProxy_IrrGroup::ckSetGroupID(g); |
---|
| 169 | } |
---|
| 170 | HelloGroup* ckLocalBranch(void) const { |
---|
| 171 | return ckLocalBranch(ckGetGroupID()); |
---|
| 172 | } |
---|
| 173 | static HelloGroup* ckLocalBranch(CkGroupID gID) { |
---|
| 174 | return (HelloGroup*)CkLocalBranch(gID); |
---|
| 175 | } |
---|
| 176 | /* DECLS: HelloGroup(void); |
---|
| 177 | */ |
---|
| 178 | static CkGroupID ckNew(void); |
---|
| 179 | |
---|
| 180 | }; |
---|
| 181 | PUPmarshall(CProxy_HelloGroup) |
---|
| 182 | /* ---------------- section proxy -------------- */ |
---|
| 183 | class CProxySection_HelloGroup: public CProxySection_IrrGroup{ |
---|
| 184 | public: |
---|
| 185 | typedef HelloGroup local_t; |
---|
| 186 | typedef CkIndex_HelloGroup index_t; |
---|
| 187 | typedef CProxy_HelloGroup proxy_t; |
---|
| 188 | typedef CProxyElement_HelloGroup element_t; |
---|
| 189 | typedef CProxySection_HelloGroup section_t; |
---|
| 190 | |
---|
| 191 | CProxySection_HelloGroup(void) {} |
---|
| 192 | CProxySection_HelloGroup(const IrrGroup *g) : CProxySection_IrrGroup(g){ } |
---|
| 193 | CProxySection_HelloGroup(const CkGroupID &_gid,const int *_pelist,int _npes,CK_DELCTOR_PARAM) : CProxySection_IrrGroup(_gid,_pelist,_npes,CK_DELCTOR_ARGS){ } |
---|
| 194 | CProxySection_HelloGroup(const CkGroupID &_gid,const int *_pelist,int _npes) : CProxySection_IrrGroup(_gid,_pelist,_npes){ } |
---|
| 195 | CProxySection_HelloGroup(int n,const CkGroupID *_gid,const int **_pelist,const int *_npes) : CProxySection_IrrGroup(n,_gid,_pelist,_npes){ } |
---|
| 196 | CProxySection_HelloGroup(int n,const CkGroupID *_gid,const int **_pelist,const int *_npes,CK_DELCTOR_PARAM) : CProxySection_IrrGroup(n,_gid,_pelist,_npes,CK_DELCTOR_ARGS){ } |
---|
| 197 | CK_DISAMBIG_GROUP_SECTION(CProxySection_IrrGroup) |
---|
| 198 | void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL) { |
---|
| 199 | CProxySection_IrrGroup::ckDelegate(dTo,dPtr); |
---|
| 200 | } |
---|
| 201 | void ckUndelegate(void) { |
---|
| 202 | CProxySection_IrrGroup::ckUndelegate(); |
---|
| 203 | } |
---|
| 204 | void pup(PUP::er &p) { |
---|
| 205 | CProxySection_IrrGroup::pup(p); |
---|
| 206 | } |
---|
| 207 | void ckSetGroupID(CkGroupID g) { |
---|
| 208 | CProxySection_IrrGroup::ckSetGroupID(g); |
---|
| 209 | } |
---|
| 210 | HelloGroup* ckLocalBranch(void) const { |
---|
| 211 | return ckLocalBranch(ckGetGroupID()); |
---|
| 212 | } |
---|
| 213 | static HelloGroup* ckLocalBranch(CkGroupID gID) { |
---|
| 214 | return (HelloGroup*)CkLocalBranch(gID); |
---|
| 215 | } |
---|
| 216 | /* DECLS: HelloGroup(void); |
---|
| 217 | */ |
---|
| 218 | |
---|
| 219 | }; |
---|
| 220 | PUPmarshall(CProxySection_HelloGroup) |
---|
| 221 | typedef CBaseT<Group,CProxy_HelloGroup> CBase_HelloGroup; |
---|
| 222 | |
---|
| 223 | extern void _registerHello(void); |
---|
| 224 | extern "C" void CkRegisterMainModule(void); |
---|
| 225 | #endif |
---|