Re: class of pfNode*?

New Message Reply Date view Thread view Subject view Author view

Bernard Leclerc (bleclerc++at++cae.ca)
Mon, 12 May 1997 16:16:03 -0400


Don Hatch wrote:

> On May 7, 7:15pm, Les Elkins wrote:
> > Subject: class of pfNode*?
> > Hello....
> >
> > Maybe I'm just being dense and not seeing this in the man pages, but
> > given a pfNode *, can I determine what the pointer is actually
> > referencing (is the object really a pfGroup, pfDCS, or what)?
> > At first read I had thought that the member function getClassType
> > would do this, but it's a static member of pfNode, so that's what
> > my pfNode->getClassType() invokes. Is there a virtual counterpart,
>
> I think what you are looking for is getType().

For clarity here, we should mention that the class pfNode is derived
indirectly from the class pfMemory which contains a few member
functions to query and test the pfType of a particular instance of
a Performer object. pfMemory::getType() is one of them, the others
are isOfType(), isExactType() and getTypeName().

Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
              
=======================================================================
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:12 PDT

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