Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TAO_SeqElem_WString_Manager Class Reference

TAO_SeqElem_WString_Manager. More...

#include <Managed_Types.h>

List of all members.

Public Member Functions

 TAO_SeqElem_WString_Manager (CORBA::WChar **buffer, CORBA::Boolean release)
 constructor from address of an element
 TAO_SeqElem_WString_Manager (const TAO_SeqElem_WString_Manager &)
 copy constructor
 ~TAO_SeqElem_WString_Manager (void)
 destructor
TAO_SeqElem_WString_Manageroperator= (const TAO_SeqElem_WString_Manager &)
 assignment from another managed type
TAO_SeqElem_WString_Manageroperator= (const CORBA::WString_var &)
 assignment from var type will make a copy
TAO_SeqElem_WString_Manageroperator= (const CORBA::WChar *)
 assignment from a constant char* will make a copy
TAO_SeqElem_WString_Manageroperator= (CORBA::WChar *)
 operator const CORBA::WChar * () const
 cast (read-only)
const CORBA::WCharin (void) const
 for in parameter.
CORBA::WChar *& inout (void)
 for inout parameter.
CORBA::WChar *& out (void)
 for out parameter.
CORBA::WChar_retn (void)
 for string of return type.

Private Member Functions

 TAO_SeqElem_WString_Manager (void)
 default ctor

Private Attributes

CORBA::WChar ** ptr_
 Address of string element from the parent's buffer.
CORBA::Boolean release_
 control memory managment semantics.

Friends

class TAO_Unbounded_WString_Sequence


Detailed Description

TAO_SeqElem_WString_Manager.

Manager for strings that are the element type of sequences. Similar to the mapping for sequences of objects (and other pseudo objects) the mapping for sequences of strings requires an auxiliar class or <manager> to handle the allocation and deallocation of the string. The main difference with respect to WString_var classes is that automatic release is not controlled on a per-item basis, but for the sequence as a whole. The difference wrt Object_Manager is that strings are duplicated using CORBA::WString_dup () as opposed to T::_duplicate(), and released using CORBA::WString_free() instead of CORBA::release() This class implements the generic string manager and is used to instantiate the proper sequence types. This class will have the same semantics as the string manager classes defined earlier with respect to the various assignment operators. However, the freeing of old storage will be dependent on the "release" value of the parent sequence class.


Constructor & Destructor Documentation

ACE_INLINE TAO_SeqElem_WString_Manager::TAO_SeqElem_WString_Manager CORBA::WChar **  buffer,
CORBA::Boolean  release
 

constructor from address of an element

ACE_INLINE TAO_SeqElem_WString_Manager::TAO_SeqElem_WString_Manager const TAO_SeqElem_WString_Manager  ) 
 

copy constructor

ACE_INLINE TAO_SeqElem_WString_Manager::~TAO_SeqElem_WString_Manager void   ) 
 

destructor

TAO_SeqElem_WString_Manager::TAO_SeqElem_WString_Manager void   )  [private]
 

default ctor


Member Function Documentation

ACE_INLINE CORBA::WChar * TAO_SeqElem_WString_Manager::_retn void   ) 
 

for string of return type.

ACE_INLINE const CORBA::WChar * TAO_SeqElem_WString_Manager::in void   )  const
 

for in parameter.

ACE_INLINE CORBA::WChar *& TAO_SeqElem_WString_Manager::inout void   ) 
 

for inout parameter.

ACE_INLINE TAO_SeqElem_WString_Manager::operator const CORBA::WChar *  )  const
 

cast (read-only)

ACE_INLINE TAO_SeqElem_WString_Manager & TAO_SeqElem_WString_Manager::operator= CORBA::WChar  ) 
 

assignment from char* will not make a copy. The SeqElem_WString_Manager will now own the string.

ACE_INLINE TAO_SeqElem_WString_Manager & TAO_SeqElem_WString_Manager::operator= const CORBA::WChar  ) 
 

assignment from a constant char* will make a copy

TAO_SeqElem_WString_Manager & TAO_SeqElem_WString_Manager::operator= const CORBA::WString_var  ) 
 

assignment from var type will make a copy

ACE_INLINE TAO_SeqElem_WString_Manager & TAO_SeqElem_WString_Manager::operator= const TAO_SeqElem_WString_Manager  ) 
 

assignment from another managed type

ACE_INLINE CORBA::WChar *& TAO_SeqElem_WString_Manager::out void   ) 
 

for out parameter.


Friends And Related Function Documentation

friend class TAO_Unbounded_WString_Sequence [friend]
 


Member Data Documentation

CORBA::WChar** TAO_SeqElem_WString_Manager::ptr_ [private]
 

Address of string element from the parent's buffer.

CORBA::Boolean TAO_SeqElem_WString_Manager::release_ [private]
 

control memory managment semantics.


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 03:50:23 2006 for TAO by  doxygen 1.3.9.1