TAO::String_var< charT > Class Template Reference

#include <CORBA_String.h>

List of all members.

Public Types

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

Public Member Functions

 String_var (void)
 Default constructor.
 String_var (character_type *p)
 Constructor, owns p.
 String_var (const character_type *p)
 Constructor. Makes a copy of p.
 String_var (String_var< charT > const &s)
 Copy constructor.
 ~String_var (void)
 Destructor.
String_varoperator= (character_type *p)
 Assignment operator.
String_varoperator= (const character_type *p)
 Assignment to a const char*. Makes a copy.
String_varoperator= (String_var< character_type > const &s)
 Assignment operator.
 operator character_type *& ()
 Spec-defined read/write version.
 operator const character_type * () const
 Only read privileges.
character_type & operator[] (CORBA::ULong slot)
 Allows access and modification using an slot.
character_type operator[] (CORBA::ULong slot) const
 Allows only accessing thru an slot.
const character_type * in (void) const
 For in parameter.
character_type *& inout (void)
 For inout parameter.
character_type *& out (void)
 For out parameter.
character_type * _retn (void)
 For string of return type.

Private Attributes

character_type * ptr_
 Instance.


Detailed Description

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

Provides automatic deallocation of storage for the string once it goes out of scope.

Member Typedef Documentation

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

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


Constructor & Destructor Documentation

template<typename charT >
TAO::String_var< charT >::String_var ( void   )  [inline]

Default constructor.

template<typename charT >
TAO::String_var< charT >::String_var ( character_type *  p  )  [inline]

Constructor, owns p.

template<typename charT >
TAO::String_var< charT >::String_var ( const character_type *  p  )  [inline]

Constructor. Makes a copy of p.

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

Copy constructor.

template<typename charT >
TAO::String_var< charT >::~String_var ( void   )  [inline]

Destructor.


Member Function Documentation

template<typename charT >
character_type* TAO::String_var< charT >::_retn ( void   )  [inline]

For string of return type.

template<typename charT >
const character_type* TAO::String_var< charT >::in ( void   )  const [inline]

For in parameter.

template<typename charT >
character_type*& TAO::String_var< charT >::inout ( void   )  [inline]

For inout parameter.

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

Spec-defined read/write version.

template<typename charT >
TAO::String_var< charT >::operator const character_type * (  )  const [inline]

Only read privileges.

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

Assignment operator.

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

Assignment to a const char*. Makes a copy.

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

Assignment operator.

template<typename charT >
character_type TAO::String_var< charT >::operator[] ( CORBA::ULong  slot  )  const [inline]

Allows only accessing thru an slot.

template<typename charT >
character_type& TAO::String_var< charT >::operator[] ( CORBA::ULong  slot  )  [inline]

Allows access and modification using an slot.

template<typename charT >
character_type*& TAO::String_var< charT >::out ( void   )  [inline]

For out parameter.


Member Data Documentation

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

Instance.


The documentation for this class was generated from the following file:

Generated on Mon Jul 13 16:28:11 2009 for TAO by  doxygen 1.5.8