Skip to content

classTypeInfoArray 03

Member Function Documentation

void TypeInfoArray::AllocArray HTypeInfo **  array,
int  count
[private]
 

void TypeInfoArray::DeleteArray  )  [inline]
  Definition at line 671 of file HPropert.h.

void TypeInfoArray::DeleteArray HTypeInfo array  )  [private]
 

HTypeInfo* TypeInfoArray::ElementAt HTypeInfo array,
int  index
[private]
 

int TypeInfoArray::GetCount  )  const [inline]
 

Retrieves the number of HTypeInfo elements in the array.

Definition at line 680 of file HPropert.h.

HTypeInfo* TypeInfoArray::GetTypeInfoArrayData  )  [inline]
  Definition at line 679 of file HPropert.h.

HTypeInfo* TypeInfoArray::operator[] int  index  )  [inline]
  Definition at line 676 of file HPropert.h.

void TypeInfoArray::SetArraySize int  count  )  [inline]
 

Sets the size of the array a priori.

Parameters:
count  - The number of elements in the array.
m_typeinfoarray.SetArraySize(4);
for(int i=0; i < NUMTYPES; i++) {
   HTypeInfo *typeinfo = m_typeinfoarray[i];
   CString string;
   switch (i) {
   case TYPE1:
      typeinfo->SetMatchName("MyType1");
      string.LoadString(IDS_MYTYPE1);
      break;
   case TYPE2:
      typeinfo->SetMatchName("MyType2");
      string.LoadString(IDS_MYTYPE2);
      break;
   case TYPE3:
      typeinfo->SetMatchName("MyType3");
      string.LoadString(IDS_MYTYPE3);
      break;
   case TYPE4:
      typeinfo->SetMatchName("MyType4");
      string.LoadString(IDS_MYTYPE4);
      break;
   }
   typeinfo->SetLocalizedName(string);
}
Note:
The array may not be resized dynamically since any data in it will be lost upon resizing.

Definition at line 666 of file HPropert.h.