Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Seq_Out_T.h
blob56bc34fba2715692da14e05c4823d042f4474544
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Seq_Out_T.h
7 * @author Jeff Parsons
8 */
9 //=============================================================================
11 #ifndef TAO_SEQ_OUT_T_H
12 #define TAO_SEQ_OUT_T_H
13 #include /**/ "ace/pre.h"
15 #include /**/ "tao/Versioned_Namespace.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/Basic_Types.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 /**
26 * @class TAO_Seq_Out_T
28 * @brief Parametrized implementation of _out class for sequences.
30 template <typename T>
31 class TAO_Seq_Out_T
33 public:
34 typedef typename T::subscript_type T_elem;
35 typedef typename T::_var_type T_var;
37 TAO_Seq_Out_T (T *&);
38 TAO_Seq_Out_T (T_var &);
39 TAO_Seq_Out_T (const TAO_Seq_Out_T<T> &);
41 TAO_Seq_Out_T &operator= (const TAO_Seq_Out_T<T> &);
42 TAO_Seq_Out_T &operator= (T *);
44 operator T *& ();
45 T * operator-> ();
47 T_elem operator[] (CORBA::ULong index);
48 T *& ptr ();
50 private:
51 T *& ptr_;
52 // Assignment from T_var not allowed.
53 void operator= (const T_var &);
56 TAO_END_VERSIONED_NAMESPACE_DECL
58 #if defined (__ACE_INLINE__)
59 #include "tao/Seq_Out_T.inl"
60 #endif /* defined INLINE */
62 #include "tao/Seq_Out_T.cpp"
64 #include /**/ "ace/post.h"
65 #endif /* TAO_SEQ_OUT_T_H */