home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
programming
/
c
/
asap
/
coplist.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-23
|
2KB
|
51 lines
/*****************************************************************************
* *
* ASAP - Amiga Software Authoring Platform *
* *
* Written by Laurie Perrin *
* *
* ACopList wrapper class *
* *
*****************************************************************************/
#ifndef ASAP_CopList_H
#define ASAP_CopList_H
#include <New.h>
extern "C"
{
#include <Proto/Graphics.h>
}
class ACopList : public CopList
{
public:
inline void FreeCopList();
inline void operator delete(void *);
inline static ACopList * UCopperListInit(UCopList *, long n);
inline void * operator new(size_t, UCopList *, long n);
};
//----------------------------------------------------------------------------
void ACopList::FreeCopList ()
{
::FreeCopList(this);
}
//----------------------------------------------------------------------------
void ACopList::operator delete (void *copList)
{
((ACopList *) copList)->FreeCopList();
}
//----------------------------------------------------------------------------
ACopList * ACopList::UCopperListInit (UCopList *ucopList, long n)
{
return (ACopList *) ::UCopperListInit(ucopList, n);
}
//----------------------------------------------------------------------------
void * operator new (size_t, UCopList *ucopList, long n)
{
return ACopList::UCopperListInit(ucopList, n);
}
#endif