TAO::String_out< charT > Class Template Reference

String_out. More...

#include <CORBA_String.h>

List of all members.

Public Types

typedef charT character_type
typedef TAO::details::string_traits_base<
character_type
s_traits
typedef s_traits::string_mgr string_mgr

Public Member Functions

 String_out (character_type *&p)
 Construction from a reference to a string.

 String_out (String_var< character_type > &p)
 Construction from a var.

 String_out (string_mgr &p)
 Construction from a TAO::String_Manager.

 String_out (const String_out< charT > &s)
 Copy constructor.

String_outoperator= (String_out< charT > const &s)
 Assignment from a string_out.

String_outoperator= (character_type *p)
 Assignment from a string.

String_outoperator= (const character_type *p)
 Assignment from a constant char*.

 operator character_type *& ()
 Cast.

character_type *& ptr (void)
 Return underlying instance.


Private Member Functions

void operator= (const typename s_traits::string_var &)

Private Attributes

character_type *& ptr_
 Instance.


Detailed Description

template<typename charT>
class TAO::String_out< charT >

String_out.

To support the memory management for "out" parameter passing mode.

Definition at line 174 of file CORBA_String.h.


Member Typedef Documentation

template<typename charT>
typedef charT TAO::String_out< charT >::character_type
 

Definition at line 177 of file CORBA_String.h.

template<typename charT>
typedef TAO::details::string_traits_base<character_type> TAO::String_out< charT >::s_traits
 

Definition at line 178 of file CORBA_String.h.

template<typename charT>
typedef s_traits::string_mgr TAO::String_out< charT >::string_mgr
 

Definition at line 179 of file CORBA_String.h.

Referenced by TAO::String_out< charT >::String_out().


Constructor & Destructor Documentation

template<typename charT>
TAO::String_out< charT >::String_out character_type *&  p  )  [inline]
 

Construction from a reference to a string.

Definition at line 182 of file CORBA_String.h.

00182                                            : ptr_ (p)
00183     {
00184       this->ptr_ = 0;
00185     }

template<typename charT>
TAO::String_out< charT >::String_out String_var< character_type > &  p  )  [inline]
 

Construction from a var.

Definition at line 188 of file CORBA_String.h.

00188                                                        : ptr_ (p.out ())
00189     {
00190     }

template<typename charT>
TAO::String_out< charT >::String_out string_mgr p  )  [inline]
 

Construction from a TAO::String_Manager.

Definition at line 193 of file CORBA_String.h.

References TAO::String_out< charT >::string_mgr.

00193                                       : ptr_ (p.out ())
00194     {
00195     }

template<typename charT>
TAO::String_out< charT >::String_out const String_out< charT > &  s  )  [inline]
 

Copy constructor.

Definition at line 198 of file CORBA_String.h.

00198                                                    : ptr_ (s.ptr_)
00199     {
00200     }


Member Function Documentation

template<typename charT>
TAO::String_out< charT >::operator character_type *&  )  [inline]
 

Cast.

Definition at line 224 of file CORBA_String.h.

00225     {
00226       return this->ptr_;
00227     }

template<typename charT>
void TAO::String_out< charT >::operator= const typename s_traits::string_var &   )  [private]
 

template<typename charT>
String_out& TAO::String_out< charT >::operator= const character_type p  )  [inline]
 

Assignment from a constant char*.

Definition at line 217 of file CORBA_String.h.

00218     {
00219       this->ptr_ = s_traits::duplicate (p);
00220       return *this;
00221     }

template<typename charT>
String_out& TAO::String_out< charT >::operator= character_type p  )  [inline]
 

Assignment from a string.

Definition at line 210 of file CORBA_String.h.

00211     {
00212       this->ptr_ = p;
00213       return *this;
00214     }

template<typename charT>
String_out& TAO::String_out< charT >::operator= String_out< charT > const &  s  )  [inline]
 

Assignment from a string_out.

Definition at line 203 of file CORBA_String.h.

References TAO::String_out< charT >::ptr_.

00204     {
00205       this->ptr_ = s.ptr_;
00206       return *this;
00207     }

template<typename charT>
character_type*& TAO::String_out< charT >::ptr void   )  [inline]
 

Return underlying instance.

Definition at line 230 of file CORBA_String.h.

Referenced by operator<<(), and operator>>().

00231     {
00232       return this->ptr_;
00233     }


Member Data Documentation

template<typename charT>
character_type*& TAO::String_out< charT >::ptr_ [private]
 

Instance.

Definition at line 237 of file CORBA_String.h.

Referenced by TAO::String_out< charT >::operator=().


The documentation for this class was generated from the following file:
Generated on Thu Nov 9 12:26:03 2006 for TAO by doxygen 1.3.6