charmxi: Move SdagConstruct code all into its own file
authorPhil Miller <mille121@illinois.edu>
Thu, 27 Sep 2012 21:46:08 +0000 (16:46 -0500)
committerPhil Miller <mille121@illinois.edu>
Sun, 30 Sep 2012 20:20:55 +0000 (15:20 -0500)
src/xlat-i/sdag/CSdagConstruct.C
src/xlat-i/xi-symbol.C

index b40927cb8e120a90518ec2fa5103c246ce38c39b..5594311b385d206948a610ce1ddedd2612167464 100644 (file)
@@ -8,6 +8,57 @@
 
 namespace xi {
 
+SdagConstruct::SdagConstruct(EToken t, SdagConstruct *construct1)
+{
+  con1 = 0;  con2 = 0; con3 = 0; con4 = 0;
+  type = t;
+  traceName=NULL;
+  publishesList = new TList<SdagConstruct*>();
+  constructs = new TList<SdagConstruct*>();
+  constructs->append(construct1);
+}
+
+SdagConstruct::SdagConstruct(EToken t, SdagConstruct *construct1, SdagConstruct *aList)
+{
+  con1=0; con2=0; con3=0; con4=0;
+  type = t;
+  traceName=NULL;
+  publishesList = new TList<SdagConstruct*>();
+  constructs = new TList<SdagConstruct*>();
+  constructs->append(construct1);
+  SdagConstruct *sc;
+  for(sc = aList->constructs->begin(); !aList->constructs->end(); sc=aList->constructs->next())
+    constructs->append(sc);
+}
+
+SdagConstruct::SdagConstruct(EToken t, XStr *txt, SdagConstruct *c1, SdagConstruct *c2, SdagConstruct *c3,
+                            SdagConstruct *c4, SdagConstruct *constructAppend, EntryList *el)
+{
+  text = txt;
+  type = t;
+  traceName=NULL;
+  con1 = c1; con2 = c2; con3 = c3; con4 = c4;
+  publishesList = new TList<SdagConstruct*>();
+  constructs = new TList<SdagConstruct*>();
+  if (constructAppend != 0) {
+    constructs->append(constructAppend);
+  }
+  elist = el;
+}
+
+SdagConstruct::SdagConstruct(EToken t, const char *entryStr, const char *codeStr, ParamList *pl)
+{
+  type = t;
+  traceName=NULL;
+  text = new XStr(codeStr);
+  connectEntry = new XStr(entryStr);
+  con1 = 0; con2 = 0; con3 = 0; con4 =0;
+  publishesList = new TList<SdagConstruct*>();
+  constructs = new TList<SdagConstruct*>();
+  param = pl;
+
+}
+
 SdagConstruct *buildAtomic(const char* code,
                           SdagConstruct *pub_list,
                           const char *trace_name)
index aad7f114d0002b02fdc062c03dfe90ab8193a457..f2afe90704e397d380df3b2fe9723672d76e6f48 100644 (file)
@@ -2717,58 +2717,6 @@ void Chare::lookforCEntry(CEntry *centry)
   }
 }
 
-////////////////////////// SDAGCONSTRUCT ///////////////////////
-SdagConstruct::SdagConstruct(EToken t, SdagConstruct *construct1)
-{
-  con1 = 0;  con2 = 0; con3 = 0; con4 = 0;
-  type = t;
-  traceName=NULL;
-  publishesList = new TList<SdagConstruct*>();
-  constructs = new TList<SdagConstruct*>();
-  constructs->append(construct1);
-}
-
-SdagConstruct::SdagConstruct(EToken t, SdagConstruct *construct1, SdagConstruct *aList)
-{
-  con1=0; con2=0; con3=0; con4=0;
-  type = t;
-  traceName=NULL;
-  publishesList = new TList<SdagConstruct*>();
-  constructs = new TList<SdagConstruct*>();
-  constructs->append(construct1);
-  SdagConstruct *sc;
-  for(sc = aList->constructs->begin(); !aList->constructs->end(); sc=aList->constructs->next())
-    constructs->append(sc);
-}
-
-SdagConstruct::SdagConstruct(EToken t, XStr *txt, SdagConstruct *c1, SdagConstruct *c2, SdagConstruct *c3,
-                            SdagConstruct *c4, SdagConstruct *constructAppend, EntryList *el)
-{
-  text = txt;
-  type = t;
-  traceName=NULL;
-  con1 = c1; con2 = c2; con3 = c3; con4 = c4;
-  publishesList = new TList<SdagConstruct*>();
-  constructs = new TList<SdagConstruct*>();
-  if (constructAppend != 0) {
-    constructs->append(constructAppend);
-  }
-  elist = el;
-}
-
-SdagConstruct::SdagConstruct(EToken t, const char *entryStr, const char *codeStr, ParamList *pl)
-{
-  type = t;
-  traceName=NULL;
-  text = new XStr(codeStr);
-  connectEntry = new XStr(entryStr);
-  con1 = 0; con2 = 0; con3 = 0; con4 =0;
-  publishesList = new TList<SdagConstruct*>();
-  constructs = new TList<SdagConstruct*>();
-  param = pl;
-
-}
-
 ///////////////////////////// ENTRY ////////////////////////////
 
 void ParamList::checkParamList(){