Bernard Leclerc (bleclerc++at++poster.cae.ca)
Thu, 03 Jul 1997 11:22:55 -0400
> It is possible to do something like this in a more "object oriented"
> way. Look into using functors. In short functors are objects that act
> like functions by storing information about the functions they are going
> to call. Functors can be used to store a class pointer and a mumber
> function pointer. Then you just pass around the functor object or a
> pointer to it. This can be used with templates to allow you to write
> code that can operate on any C++ function (static and non-static). I
> use functors to allow sproc'ing of class member functions.
>
> If you want further explaination, I can refer you to some references
> when I get some time.
>
> -Allen
>
You'll find more on functors at this address
http://www.sgi.com/Technology/STL/functors.html
Good reading.
--
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:34 PDT