Go to the documentation of this file.
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>
183 #endif //# CASACORE_NO_AUTO_TEMPLATES
Link< elem > * topOfStack
Pointer to the top of the stack.
t & val()
The val() member function will return a reference to the contents of the current node.
void throw_empty_Stack_error(const char *msg=0)
Bool empty() const
Check to see if the stack is empty.
Stack< elem > & operator=(const Stack< elem > &other)
Create a stack which is a copy of other.
void push(const elem &e)
Add an element to the top of the stack.
void pop()
Remove the top element from the top of the stack.
Stack()
This creates an empty stack.
this file contains all the compiler specific defines
This class, Stack<t>, defines an implementation of a stack using the doubly linked list primitive,...
Link< t > * unlink(Link< t > *=0)
This function unlinks a given element of the list.
const Double e
e and functions thereof:
bool Bool
Define the standard types used by Casacore.
elem & top()
Retreive the top element on the stack.
elem popVal()
Remove the top element from the top of the stack, and return it.