diff options
Diffstat (limited to 'TAO/tao/Unbounded_Object_Reference_Sequence_T.h')
-rw-r--r-- | TAO/tao/Unbounded_Object_Reference_Sequence_T.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h index 37c1b73a251..50d1ae9fd9b 100644 --- a/TAO/tao/Unbounded_Object_Reference_Sequence_T.h +++ b/TAO/tao/Unbounded_Object_Reference_Sequence_T.h @@ -13,6 +13,7 @@ #include "Object_Reference_Traits_T.h" #include "Generic_Sequence_T.h" #include "Object_Reference_Sequence_Element_T.h" +#include "Object_Reference_Const_Sequence_Element_T.h" TAO_BEGIN_VERSIONED_NAMESPACE_DECL @@ -31,6 +32,7 @@ public: typedef details::unbounded_reference_allocation_traits<value_type,element_traits,true> allocation_traits; typedef details::object_reference_sequence_element<element_traits> element_type; + typedef details::object_reference_const_sequence_element<element_traits> const_element_type; typedef element_type subscript_type; typedef value_type const & const_subscript_type; @@ -50,29 +52,36 @@ public: : impl_(maximum, length, data, release) {} - /* Use default ctor, operator= and dtor */ + /// @copydoc details::generic_sequence::maximum inline CORBA::ULong maximum() const { return impl_.maximum(); } + /// @copydoc details::generic_sequence::release inline CORBA::Boolean release() const { return impl_.release(); } + /// @copydoc details::generic_sequence::length inline CORBA::ULong length() const { return impl_.length(); } + /// @copydoc details::generic_sequence::length inline void length(CORBA::ULong length) { impl_.length(length); } - inline value_type const & operator[](CORBA::ULong i) const { - return impl_[i]; + /// @copydoc details::generic_sequence::operator[] + inline const_element_type operator[](CORBA::ULong i) const { + return const_element_type (impl_[i], release()); } + /// @copydoc details::generic_sequence::operator[] inline element_type operator[](CORBA::ULong i) { return element_type(impl_[i], release()); } + /// @copydoc details::generic_sequence::get_buffer inline value_type const * get_buffer() const { return impl_.get_buffer(); } + /// @copydoc details::generic_sequence::replace inline void replace( CORBA::ULong maximum, CORBA::ULong length, @@ -80,9 +89,11 @@ public: CORBA::Boolean release = false) { impl_.replace(maximum, length, data, release); } + /// @copydoc details::generic_sequence::get_buffer(CORBA::Boolean) inline value_type * get_buffer(CORBA::Boolean orphan = false) { return impl_.get_buffer(orphan); } + /// @copydoc details::generic_sequence::swap inline void swap(unbounded_object_reference_sequence & rhs) throw() { impl_.swap(rhs.impl_); } |