GME
13
|
Go to the source code of this file.
Defines | |
#define | MGACOLL_ITERATE(iftype, collifptr) |
#define | MGACOLL_ITER (*arrptr) |
#define | MGACOLL_AT_END (arrptr == arrend) |
#define | MGACOLL_ITERATE_END } |
#define MGACOLL_AT_END (arrptr == arrend) |
Definition at line 22 of file CommonMgaTrukk.h.
#define MGACOLL_ITER (*arrptr) |
Definition at line 20 of file CommonMgaTrukk.h.
#define MGACOLL_ITERATE | ( | iftype, | |
collifptr | |||
) |
{ \
ASSERT( collifptr != NULL ); \
long iter_count = 0; \
COMTHROW( collifptr->get_Count(&iter_count) ); \
ASSERT( iter_count >= 0 ); \
std::unique_ptr<CComPtr<iftype>[]> array(new CComPtr<iftype>[iter_count]); \
CComPtr<iftype> *arrptr, *arrend; \
if(iter_count > 0) \
COMTHROW( collifptr->GetAll(iter_count, &(*array.get())) ); \
arrend = array.get()+iter_count; \
for(arrptr = array.get(); arrptr != arrend; arrptr++)
Definition at line 7 of file CommonMgaTrukk.h.
#define MGACOLL_ITERATE_END } |
Definition at line 24 of file CommonMgaTrukk.h.