28 #ifndef CASA_POOLSTACK_H 29 #define CASA_POOLSTACK_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Containers/Block.h> 159 #ifndef CASACORE_NO_AUTO_TEMPLATES 160 #include <casacore/casa/Containers/PoolStack.tcc> 161 #endif //# CASACORE_NO_AUTO_TEMPLATES ~PoolStack()
Delete the stack.
void release(T *obj)
Return an object to the stack for re-use.
void clear()
Decimate the stack by getting rid of all unused elements in it.
PoolStack< T, Key > & operator=(const PoolStack< T, Key > &other)
void addElements(const uInt n)
Add n elements.
Bool empty()
Test if stack empty.
uInt nelements() const
return the stack extend (for debugging use and checking mainly)
static const uInt NDEF
Number of default stack entries.
PoolStack()
Create the stack with the default Key.
bool Bool
Define the standard types used by Casacore.
const Key & key() const
Return the key belonging to the stack.
Key key_p
The key belonging to this stack.
A parameterized stack of re-usable objects.
PtrBlock< T * > stack_p
The stack.
this file contains all the compiler specific defines
uInt top_p
Current pointer to top-of-stack.