Inlining the class template's public methods

The class template's methods do little more than delegate to the implementation class. Like all normal Taligent Application Environment methods, you should declare most of the class template's methods virtual. Additionally, make the implementations inline to avoid an extra method call where the class template is used nonpolymorphically.

Do not inline the class template's type-specific methods. The implementation class is the only client, and it will always call them polymorphically.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker