#include <ace/Stack.h> template<class T, size_t SIZE> class ACE_Fixed_Stack {
public:
ACE_Fixed_Stack (void);
ACE_Fixed_Stack (const ACE_Fixed_Stack<T, SIZE> &s);
void operator= (const ACE_Fixed_Stack<T, SIZE> &s);
~ACE_Fixed_Stack (void);
void push (const T &new_item);
void pop (T &item);
void top (T &item) const;
int is_empty (void) const;
int is_full (void) const;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
private:
size_t size_;
size_t top_;
T stack_[SIZE];
};
ACE_Fixed_Stack (void);
ACE_Fixed_Stack (const ACE_Fixed_Stack<T, SIZE> &s);
void operator= (const ACE_Fixed_Stack<T, SIZE> &s);
~ACE_Fixed_Stack (void);
void push (const T &new_item);
void pop (T &item);
void top (T &item) const;
int is_empty (void) const;
int is_full (void) const;
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;