ckarrayindexmax: Move trivial print methods to base class
authorRamprasad Venkataraman <ramv@illinois.edu>
Tue, 31 May 2011 20:37:46 +0000 (15:37 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Wed, 8 Jun 2011 15:37:38 +0000 (10:37 -0500)
src/ck-core/charm++.h

index 9dc8e0d6910f9bc17fd09bd87bb51d17a22f7556..851e6be73cb5039fb624559645dc2358b677e0a7 100644 (file)
@@ -295,6 +295,7 @@ public:
            }
            return ret;
        }
+    void print() { CmiPrintf("%d: %d %d %d\n", nInts,index[0], index[1], index[2]); }
 };
 
 inline CkHashCode CkArrayIndex::hash(void) const
@@ -334,8 +335,6 @@ public:
                {copyFrom(that);}
        CkArrayIndexMax &operator=(const CkArrayIndex &that) 
                {copyFrom(that); return *this;}
-        void print() { CmiPrintf("%d: %d %d %d\n", nInts,index[0], index[1], index[2]); }
-        void sprint(char *str) { sprintf(str, "%d: %d %d %d", nInts,index[0], index[1], index[2]); }
 };
 PUPmarshall(CkArrayIndexMax)