Re: Performer and C++

New Message Reply Date view Thread view Subject view Author view

Swaminathan N. (swami++at++evl.uic.edu)
Wed, 16 Apr 1997 11:07:08 -0500 (CDT)


On Tue, 15 Apr 1997, Robert C Subr wrote:

> Greetings,
>
> I am new at C++ and have a question concerning the PF shared arena. How do
> I setup my user classes so they are defined in the pfsharedarena when the
> operator new is used or deleted from the pfsharedarena when the operator
> delete is called? Or is there another correct way of doing this? Any help
> or simple examples would be greatly appreciated.
>
> Thanks,
>
> Rob Subr
>

You could add class specific operator new and operator delete. Or, even
simpler, just add the line PFSTRUCT_DECLARE; in the public section of your
class interface. You might also need to #include <Performer/pr/pfStruct.h>
Another important thing to note is that operator new [] and operator delete
[] are not provided. So allocating arrays of objects will use the operator
::new [] which can be overridden only in newer versions of the compiler (7.0
and 7.1)

Swami

 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
v Swaminathan Narayanan ^
v swami++at++evl.uic.edu ^
v Office: 996-3002 ^
v Home: 850-2726 ^
v http://www.evl.uic.edu/swami ^
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:55:04 PDT

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