31 #ifndef AIPS_USE_DEPRECATED
32 #error "Stack.h is deprecated; use -DBUILD_DEPRECATED=ON to use it"
35 #include <casacore/casa/aips.h>
36 #include <casacore/casa/Containers/Link.h>
151 elem ret = (*tmp).
val();
164 return((*topOfStack).val());}
169 return((*topOfStack).val());}
181 #ifndef CASACORE_NO_AUTO_TEMPLATES
182 #include <casacore/casa/Containers/Stack.tcc>
Link< t > * unlink(Link< t > *=0)
This function unlinks a given element of the list.
t & val()
The val() member function will return a reference to the contents of the current node.
This class, Stack<t>, defines an implementation of a stack using the doubly linked list primitive,...
void pop()
Remove the top element from the top of the stack.
elem & top()
Retreive the top element on the stack.
Stack()
This creates an empty stack.
Bool empty() const
Check to see if the stack is empty.
elem popVal()
Remove the top element from the top of the stack, and return it.
Stack(const Stack< elem > &other)
Create a stack by making a copy of other.
Stack< elem > & operator=(const Stack< elem > &other)
Create a stack which is a copy of other.
Link< elem > * topOfStack
Pointer to the top of the stack.
void push(const elem &e)
Add an element to the top of the stack.
const Double e
e and functions thereof:
this file contains all the compiler specific defines
void throw_empty_Stack_error(const char *msg=0)
bool Bool
Define the standard types used by Casacore.