#include <Managed_Types.h>
Public Member Functions | |
TAO_SeqElem_String_Manager (const TAO_SeqElem_String_Manager &) | |
copy constructor | |
TAO_SeqElem_String_Manager (char **buffer, CORBA::Boolean release) | |
constructor from address of an element | |
~TAO_SeqElem_String_Manager (void) | |
destructor | |
TAO_SeqElem_String_Manager & | operator= (const TAO_SeqElem_String_Manager &) |
assignment from another managed type | |
TAO_SeqElem_String_Manager & | operator= (const CORBA::String_var &) |
assignment from var type will make a copy | |
TAO_SeqElem_String_Manager & | operator= (const char *) |
assignment from a constant char* will make a copy | |
TAO_SeqElem_String_Manager & | operator= (char *) |
operator const char * () const | |
cast (read-only) | |
const char * | in (void) const |
for in parameter. | |
char *& | inout (void) |
for inout parameter. | |
char *& | out (void) |
for out parameter. | |
char * | _retn (void) |
for string of return type. | |
Private Member Functions | |
TAO_SeqElem_String_Manager (void) | |
default ctor | |
Private Attributes | |
char ** | ptr_ |
Address of string element from the parent's buffer. | |
CORBA::Boolean | release_ |
control memory managment semantics. | |
Friends | |
class | TAO_Unbounded_String_Sequence |
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 String_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::string_dup () as opposed to T::_duplicate(), and released using CORBA::string_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.
|
copy constructor
|
|
constructor from address of an element
|
|
destructor
|
|
default ctor
|
|
for string of return type.
|
|
for in parameter.
|
|
for inout parameter.
|
|
cast (read-only)
|
|
assignment from char* will not make a copy. The SeqElem_String_Manager will now own the string. |
|
assignment from a constant char* will make a copy
|
|
assignment from var type will make a copy
|
|
assignment from another managed type
|
|
for out parameter.
|
|
|
|
Address of string element from the parent's buffer.
|
|
control memory managment semantics.
|