TAO  2.3.3
Public Types | Public Member Functions | Private Attributes | List of all members
TAO::String_var< charT > Class Template Reference

#include <CORBA_String.h>

Public Types

typedef charT character_type
 
typedef TAO::details::string_traits_base< character_types_traits
 

Public Member Functions

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

Private Attributes

character_typeptr_
 Instance. More...
 

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= ( character_type p)
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= ( String_var< character_type > const &  s)
inline

Assignment operator.

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 >::operator[] ( CORBA::ULong  slot) const
inline

Allows only accessing thru 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 files: