Tools.h++ Manual

104011 Tandem Computers Incorporated 23-31
23
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.
RWBoolean isEmpty() const;
Returns
TRUE
if the stack is empty, otherwise
FALSE
.
size_t occurrencesOf(
yourTester
t, const
void* d) const;
Returns the number of items in the stack for which the user-provided function
pointed to by
t
finds a match with
d
.
size_t occurrencesOfReference
(const type* e) const;
Returns the number of items in the stack with the address
e
.
type
* pop();
Removes and returns the item at the top of the stack, or returns nil if the stack
is empty.
void push(
type
* a);
Adds an item to the top of the stack.
type
* top() const;
Returns the item at the top of the stack or nil if the stack is empty.