All the Essential Tools Module generic collection classes are declared as in the example above, using the declare macro defined in the header file <generic.h>. However, there is one important difference in how the Essential Tools Module classes are declared versus the pattern set by Stroustrup (1986, Section 7.3.5). The difference is summarized below:
typedef int* intP; declare(RWGStack, intP) //Wrong! declare(RWGStack, int) //Correct.
In Stroustrup, the class is declared using a typedef for a pointer to the collected item. The Rogue Wave generic classes are all declared using the item name itself. This is true for both the reference-semantics and value-semantics classes.
©2004 Copyright Quovadx, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.