Tools.h++ Class Reference

Table Of Contents
typedef RWBoolean (*yourTester)(const type*, const void*);
has been used for this tester function.
Persistence
None
Public Constructors
RWGStack(type)();
Constructs an empty stack.
RWGStack(type)(type* a);
Constructs a stack with one entry a.
RWGStack(type)(const RWGStack(type)& a);
Copy constructor. A shallow copy of a is made.
Assignment Operator
void
operator=(const RWGStack(type)& a);
Assignment operator. A shallow copy of a is made.
Public Member Functions
void
clear();
Removes all items from the stack.
RWBoolean
contains(yourTester t, const void* d) const;
Returns TRUE if the stack contains an item for which the user-defined function pointed
to by t finds a match with d.
RWBoolean
containsReference(const type* e) const;
Returns TRUE if the stack contains an item with the address e.
size_t
entries() const;
Returns the number of items in the stack.