diff options
Diffstat (limited to 'TAO/tao/sequence.h')
-rw-r--r-- | TAO/tao/sequence.h | 155 |
1 files changed, 0 insertions, 155 deletions
diff --git a/TAO/tao/sequence.h b/TAO/tao/sequence.h deleted file mode 100644 index 4ad094b3032..00000000000 --- a/TAO/tao/sequence.h +++ /dev/null @@ -1,155 +0,0 @@ -/* -*- C++ -*- */ - -// ============================================================================ -// -// = LIBRARY -// TAO -// -// = FILENAME -// sequence.h -// -// = AUTHOR -// Copyright 1994-1995 by Sun Microsystems Inc. -// -// Aniruddha Gokhale -// -// ============================================================================ - -#if !defined (TAO_SEQUENCE_H) -# define TAO_SEQUENCE_H - -// unbounded sequences -template <class T> -class TAO_UnboundedSeq -{ - // =TITLE - // TAO_UnboundedSeq - // =DESCRIPTION - // parametrized type for unbounded sequences -public: - - typedef T ElemType; - - // =operations - - TAO_UnboundedSeq (void); - // default constructor - - TAO_UnboundedSeq (CORBA::ULong max); - // constructor using a maximum length value - - TAO_UnboundedSeq (CORBA::ULong max, CORBA::ULong length, T *data, - CORBA::Boolean release=0); - // constructor using the data and memory management flag - - TAO_UnboundedSeq (const TAO_UnboundedSeq<T> &); - // copy constructor - - ~TAO_UnboundedSeq (void); - // destructor - - TAO_UnboundedSeq<T> &operator= (const TAO_UnboundedSeq<T> &); - // assignment operator - - CORBA::ULong maximum (void) const; - // return the max length of the sequence - - void length (CORBA::ULong); - // set the length - - CORBA::ULong length (void) const; - // return the current length - - T &operator[] (CORBA::ULong); - // operator [] - - const T &operator[] (CORBA::ULong) const; - // operator [] - - // =static operations - - static T *allocbuf (CORBA::ULong); - // allocate storage for the sequence - - static void freebuf (T *); - // free the sequence - -private: - CORBA::ULong maximum_; - // maximum length - - CORBA::ULong length_; - // length - - CORBA::Boolean release_; - // memory management - - T *buffer_; - // buffer -}; - -// bounded sequences -template <class T, CORBA::ULong size> -class TAO_BoundedSeq -{ - // =TITLE - // TAO_BoundedSeq - // =DESCRIPTION - // parametrized type for Bounded sequences -public: - - typedef T ElemType; - - // =operations - - TAO_BoundedSeq (void); - // default constructor - - TAO_BoundedSeq (CORBA::ULong length, T *data, - CORBA::Boolean release=0); - // constructor using the data and memory management flag - - TAO_BoundedSeq (const TAO_BoundedSeq<T,size> &); - // copy constructor - - ~TAO_BoundedSeq (void); - // destructor - - TAO_BoundedSeq<T,size> &operator= (const TAO_BoundedSeq<T,size> &); - // assignment operator - - CORBA::ULong maximum (void) const; - // return the max length of the sequence - - void length (CORBA::ULong); - // set the length - - CORBA::ULong length (void) const; - // return the current length - - T &operator[] (CORBA::ULong); - // operator [] - - const T &operator[] (CORBA::ULong) const; - // operator [] - - // =static operations - - static T *allocbuf (CORBA::ULong); - // allocate storage for the sequence - - static void freebuf (T *); - // free the sequence - -private: - CORBA::ULong length_; - // length - - CORBA::Boolean release_; - // memory management - - T *buffer_; - // buffer -}; - -#endif /* TAO_SEQUENCE_H */ |