51 if (m_NumInts == m_MaxNum) {
54 pInts =
new int[m_MaxNum];
56 memcpy(pInts, m_pInts,
sizeof(
int)*m_NumInts);
64 m_pInts[m_NumInts] = AnInt;
75 ASSERT((Index>=0) && (Index<m_NumInts));
76 return(m_pInts[Index]);
85 if (m_MaxNum < Group.m_MaxNum) {
88 m_MaxNum = Group.m_MaxNum;
89 m_pInts =
new int[m_MaxNum];
92 m_NumInts = Group.m_NumInts;
93 memcpy(m_pInts, Group.m_pInts,
sizeof(
int)*m_NumInts);
105 NumToList = m_NumInts;
107 for (i=0; i<NumToList; i++) {
109 CkPrintf(
"%10d %10d\n", i, (*
this)[i]);
const int kGroupMultiplier
int operator[](int Index)
const int kGroupNumToStart
AGroup & operator=(AGroup &Group)
void List(int NumToList=-1)