summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormph2 <mph2@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-03-15 18:00:49 +0000
committermph2 <mph2@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-03-15 18:00:49 +0000
commit2a41ad33301541bd9336c6684cf5b8edd0d6900e (patch)
tree64cb04b01459a9d8687d66e588662c0235b725db
parent23f2e7a4c00b73642366cb7f636f815aba637835 (diff)
downloadATCD-2a41ad33301541bd9336c6684cf5b8edd0d6900e.tar.gz
updated Fixed Stack docs
-rw-r--r--ace/Containers_T.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/ace/Containers_T.h b/ace/Containers_T.h
index 0bfec82e770..226c98f6b42 100644
--- a/ace/Containers_T.h
+++ b/ace/Containers_T.h
@@ -148,6 +148,8 @@ private:
//----------------------------------------
+/* MATT UPDATE */
+
/**
* @class ACE_Fixed_Stack
*
@@ -162,19 +164,32 @@ class ACE_Fixed_Stack
public:
// = Initialization, assignment, and termination methods.
/// Initialize a new stack so that it is empty.
+ /**
+ * Initialize an empty stack.
+ */
ACE_Fixed_Stack (void);
/// The copy constructor (performs initialization).
+ /**
+ * Initialize the stack and copy the provided stack into the current stack.
+ */
ACE_Fixed_Stack (const ACE_Fixed_Stack<T, ACE_SIZE> &s);
/// Assignment operator (performs assignment).
+ /**
+ * Perform a deep copy of the provided stack.
+ */
void operator= (const ACE_Fixed_Stack<T, ACE_SIZE> &s);
/// Perform actions needed when stack goes out of scope.
+ /**
+ * Destroy the stack.
+ */
~ACE_Fixed_Stack (void);
// = Classic Stack operations.
-
+
+ ///Constant time placement of element on top of stack.
/**
* Place a new item on top of the stack. Returns -1 if the stack
* is already full, 0 if the stack is not already full, and -1 if
@@ -182,6 +197,7 @@ public:
*/
int push (const T &new_item);
+ ///Constant time removal of top of stack.
/**
* Remove and return the top stack item. Returns -1 if the stack is
* already empty, 0 if the stack is not already empty, and -1 if
@@ -189,6 +205,7 @@ public:
*/
int pop (T &item);
+ ///Constant time examination of top of stack.
/**
* Return top stack item without removing it. Returns -1 if the
* stack is already empty, 0 if the stack is not already empty, and
@@ -199,12 +216,21 @@ public:
// = Check boundary conditions.
/// Returns 1 if the container is empty, otherwise returns 0.
+ /**
+ * Performs constant time check to see if stack is empty.
+ */
int is_empty (void) const;
/// Returns 1 if the container is full, otherwise returns 0.
+ /**
+ * Performs constant time check to see if stack is full.
+ */
int is_full (void) const;
/// The number of items in the stack.
+ /**
+ * Constant time access to the current size of the stack.
+ */
size_t size (void) const;
/// Dump the state of an object.