diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-27 00:12:29 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-27 00:12:29 +0000 |
commit | 8e304af2b327dc0fa4263bd49dc9fed8e24930a3 (patch) | |
tree | 9e292285e29aff9ca0d2e04f6f14dbbd3e74ae22 /ace/Containers.h | |
parent | 59ced6ffabb590c8d6f5046e4017bb4e14d5b201 (diff) | |
download | ATCD-8e304af2b327dc0fa4263bd49dc9fed8e24930a3.tar.gz |
Added traits for various container classes.
Diffstat (limited to 'ace/Containers.h')
-rw-r--r-- | ace/Containers.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ace/Containers.h b/ace/Containers.h index ebf4fd9beb0..022d6b6679f 100644 --- a/ace/Containers.h +++ b/ace/Containers.h @@ -210,6 +210,9 @@ class ACE_Unbounded_Stack public: friend class ACE_Unbounded_Stack_Iterator<T>; + // Trait definition. + typedef ACE_Unbounded_Stack_Iterator<T> ITERATOR; + // = Initialization, assignemnt, and termination methods. ACE_Unbounded_Stack (ACE_Allocator *alloc = 0); // Initialize a new stack so that it is empty. Use user defined @@ -376,7 +379,10 @@ class ACE_Unbounded_Queue public: friend class ACE_Unbounded_Queue_Iterator<T>; - // = Initialization and termination methods. + // Trait definition. + typedef ACE_Unbounded_Queue_Iterator<T> ITERATOR; + + // = Initialization and termination methods. ACE_Unbounded_Queue (ACE_Allocator *alloc = 0); // construction. Use user specified allocation strategy // if specified. @@ -523,6 +529,9 @@ class ACE_Double_Linked_List public: friend class ACE_Double_Linked_List_Iterator<T>; + // Trait definition. + typedef ACE_Double_Linked_List_Iterator<T> ITERATOR; + // = Initialization and termination methods. ACE_Double_Linked_List (ACE_Allocator *alloc = 0); // construction. Use user specified allocation strategy @@ -671,6 +680,9 @@ class ACE_Unbounded_Set public: friend class ACE_Unbounded_Set_Iterator<T>; + // Trait definition. + typedef ACE_Unbounded_Set_Iterator<T> ITERATOR; + // = Initialization and termination methods. ACE_Unbounded_Set (ACE_Allocator *alloc = 0); // Constructor. Use user specified allocation strategy @@ -798,6 +810,9 @@ class ACE_Fixed_Set public: friend class ACE_Fixed_Set_Iterator<T, SIZE>; + // Trait definition. + typedef ACE_Fixed_Set_Iterator<T, SIZE> ITERATOR; + // = Initialization and termination methods. ACE_Fixed_Set (void); // Constructor. @@ -918,6 +933,9 @@ class ACE_Bounded_Set public: friend class ACE_Bounded_Set_Iterator<T>; + // Trait definition. + typedef ACE_Bounded_Set_Iterator<T> ITERATOR; + enum { DEFAULT_SIZE = 10 |