summaryrefslogtreecommitdiff
path: root/TAO/tao/sequence_T.i
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/sequence_T.i')
-rw-r--r--TAO/tao/sequence_T.i245
1 files changed, 0 insertions, 245 deletions
diff --git a/TAO/tao/sequence_T.i b/TAO/tao/sequence_T.i
deleted file mode 100644
index 830b3208885..00000000000
--- a/TAO/tao/sequence_T.i
+++ /dev/null
@@ -1,245 +0,0 @@
-// This may look like C, but it's really -*- C++ -*-
-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO
-//
-// = FILENAME
-// sequence.i
-//
-// = AUTHOR
-// Copyright 1994-1995 by Sun Microsystems Inc.
-//
-// Aniruddha Gokhale and Carlos O'Ryan
-//
-// ============================================================================
-
-// ***************************************************
-// operations on the generic unbounded sequence class
-// ***************************************************
-
-template <class T> ACE_INLINE
-TAO_Unbounded_Sequence<T>::TAO_Unbounded_Sequence (void)
-{
-}
-
-template <class T> ACE_INLINE T *
-TAO_Unbounded_Sequence<T>::buffer (void) const
-{
- return (T *) this->buffer_;
-}
-
-template <class T> ACE_INLINE
-TAO_Unbounded_Sequence<T>::TAO_Unbounded_Sequence (CORBA::ULong maximum)
- : TAO_Unbounded_Base_Sequence (maximum,
- TAO_Unbounded_Sequence<T>::allocbuf (maximum))
-{
-}
-
-template <class T> ACE_INLINE
-TAO_Unbounded_Sequence<T>::TAO_Unbounded_Sequence (CORBA::ULong maximum,
- CORBA::ULong length,
- T *data,
- CORBA::Boolean release)
- : TAO_Unbounded_Base_Sequence (maximum, length, data, release)
-{
-}
-
-template <class T> ACE_INLINE T &
-TAO_Unbounded_Sequence<T>::operator[] (CORBA::ULong i)
-{
- ACE_ASSERT (i < this->maximum_);
- T* tmp = ACE_reinterpret_cast(T*,this->buffer_);
- return tmp[i];
-}
-
-template <class T> ACE_INLINE const T &
-TAO_Unbounded_Sequence<T>::operator[] (CORBA::ULong i) const
-{
- ACE_ASSERT (i < this->maximum_);
- T *tmp = ACE_reinterpret_cast (T *, this->buffer_);
- return tmp[i];
-}
-
-template <class T> ACE_INLINE T *
-TAO_Unbounded_Sequence<T>::allocbuf (CORBA::ULong size)
-{
- return new T[size];
-}
-
-template <class T> ACE_INLINE void
-TAO_Unbounded_Sequence<T>::freebuf (T *buffer)
-{
- delete[] buffer;
-}
-
-// ***************************************************
-// operations on the generic Bounded sequence class
-// ***************************************************
-
-template <class T, CORBA::ULong MAX> ACE_INLINE T *
-TAO_Bounded_Sequence<T, MAX>::buffer (void) const
-{
- return (T *) this->buffer_;
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_Sequence<T, MAX>::TAO_Bounded_Sequence (void)
-{
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_Sequence<T, MAX>::TAO_Bounded_Sequence (CORBA::ULong length,
- T *data,
- CORBA::Boolean release)
- : TAO_Bounded_Base_Sequence (length, MAX, data, release)
-{
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE T &
-TAO_Bounded_Sequence<T, MAX>::operator[] (CORBA::ULong i)
-{
- ACE_ASSERT (i < this->maximum_);
- T *tmp = ACE_reinterpret_cast (T*,this->buffer_);
- return tmp[i];
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE const T &
-TAO_Bounded_Sequence<T, MAX>::operator[] (CORBA::ULong i) const
-{
- ACE_ASSERT (i < this->maximum_);
- T* tmp = ACE_reinterpret_cast (T*,this->buffer_);
- return tmp[i];
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE T *
-TAO_Bounded_Sequence<T, MAX>::allocbuf (CORBA::ULong)
-{
- return new T[MAX];
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE void
-TAO_Bounded_Sequence<T, MAX>::freebuf (T *buffer)
-{
- delete[] buffer;
-}
-
-// *************************************************************
-// Inline operations for class TAO_Object_Manager<T>
-// *************************************************************
-
-template <class T> ACE_INLINE
-TAO_Object_Manager<T>::~TAO_Object_Manager (void)
-{
-}
-
-template <class T> ACE_INLINE
-TAO_Object_Manager<T>::TAO_Object_Manager (const TAO_Object_Manager &rhs)
- : ptr_ (rhs.ptr_),
- release_ (rhs.release_)
-{
-}
-
-template <class T> ACE_INLINE
-TAO_Object_Manager<T>::TAO_Object_Manager(T** buffer, CORBA::Boolean release)
- : ptr_ (buffer),
- release_ (release)
-{
-}
-
-template <class T> ACE_INLINE
-TAO_Object_Manager<T>::operator const T* () const // cast
-{
- return *this->ptr_;
-}
-
-template <class T> ACE_INLINE
-TAO_Object_Manager<T>::operator T* &() // cast
-{
- return *this->ptr_;
-}
-
-// *************************************************************
-// class TAO_Unbounded_Object_Sequence
-// *************************************************************
-
-//default constructor
-template <class T> ACE_INLINE
-TAO_Unbounded_Object_Sequence<T>::TAO_Unbounded_Object_Sequence (void)
-{
-}
-
-template <class T> ACE_INLINE
-TAO_Unbounded_Object_Sequence<T>::
-TAO_Unbounded_Object_Sequence (CORBA::ULong maximum,
- CORBA::ULong length,
- T* *value,
- CORBA::Boolean release)
- : TAO_Unbounded_Base_Sequence (maximum, length, value, release)
-{
-}
-
-template <class T> ACE_INLINE TAO_Object_Manager<T>
-TAO_Unbounded_Object_Sequence<T>::operator[] (CORBA::ULong index) const
-{
- ACE_ASSERT (index < this->maximum_);
- T **tmp = ACE_reinterpret_cast (T **, this->buffer_);
- return Manager (tmp + index, this->release_);
-}
-
-// *************************************************************
-// class TAO_Bounded_Object_Sequence
-// *************************************************************
-
-template<class T, CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_Object_Sequence<T,MAX>::~TAO_Bounded_Object_Sequence (void)
-{
- this->_deallocate_buffer ();
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_Object_Sequence<T,MAX>::
-TAO_Bounded_Object_Sequence (CORBA::ULong length,
- T* *value,
- CORBA::Boolean release)
- : TAO_Bounded_Base_Sequence (MAX, length, value, release)
-{
-}
-
-template <class T, CORBA::ULong MAX> ACE_INLINE TAO_Object_Manager<T>
-TAO_Bounded_Object_Sequence<T,MAX>::operator[] (CORBA::ULong index) const
-{
- ACE_ASSERT (index < this->maximum_);
- T* tmp = ACE_reinterpret_cast (T*, this->buffer_);
- return Manager(tmp + index, this->release_);
-}
-
-// *************************************************************
-// class TAO_Bounded_String_Sequence
-// *************************************************************
-
-template<CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_String_Sequence<MAX>::~TAO_Bounded_String_Sequence (void)
-{
- this->_deallocate_buffer ();
-}
-
-template<CORBA::ULong MAX> ACE_INLINE
-TAO_Bounded_String_Sequence<MAX>::
-TAO_Bounded_String_Sequence (CORBA::ULong length,
- char* *value,
- CORBA::Boolean release)
- : TAO_Bounded_Base_Sequence (MAX, length, value, release)
-{
-}
-
-template<CORBA::ULong MAX> ACE_INLINE TAO_String_Manager
-TAO_Bounded_String_Sequence<MAX>::operator[] (CORBA::ULong index) const
-{
- ACE_ASSERT (index < this->maximum_);
- char** tmp = ACE_reinterpret_cast (char**, this->buffer_);
- return Manager(tmp + index, this->release_);
-}