Inheritance off pfObjects.

New Message Reply Date view Thread view Subject view Author view

Thomas M. Miller (miller++at++acusoft.com)
Mon, 15 Apr 1996 15:31:32 -0400 (PDT)


Are there problems with inheritance off performer objects?

For example if I was to implement a class in the following manner would
it cause any problems?

class DCS_ListElm : public pfDCS
{
        public:
                DCS_ListElm *next, *prev;

                DCS_ListElm( void ) : pfDCS()
                {
                        next = prev = NULL;
                }

                ~DCS_ListElm( void )
                {
                        if( next )
                                next->prev = prev;
                        if( prev )
                                prev->next = next;
                }
};

Please forgive the crudness of my example class.

Would there be mal effects upon the deletion of an object of this class?

In what manner should an object of this class be delete anyway,
using the delete operator or pfDelete?

Thanks,

        Thomas Miller IV

--TMIV


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:42 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.