CORBA::NamedValue Class Reference

CORBA Name/value pair implementation. More...

#include <NVList.h>

Collaboration diagram for CORBA::NamedValue:

Collaboration graph
[legend]
List of all members.

Public Types

typedef NamedValue_ptr _ptr_type
typedef NamedValue_var _var_type
typedef NamedValue_out _out_type

Public Member Functions

const char * name (void) const
 optional name
Any_ptr value (void) const
 return the value
Flags flags (void) const
 return the parameter mode flag
ULong _incr_refcnt (void)
ULong _decr_refcnt (void)

Static Public Member Functions

static NamedValue_duplicate (NamedValue *)
static NamedValue_nil (void)

Protected Member Functions

 ~NamedValue (void)
 Destructor.

Private Member Functions

 NamedValue (void)

Private Attributes

ACE_Atomic_Op< TAO_SYNCH_MUTEX,
ULong
refcount_
 Reference counter.
Any any_
 holds the value
Flags flags_
 parameter mode flags
char * name_
 optional IDL name of the parameter

Friends

class ::TAO_NVList_Adapter_Impl
class NVList
class Request

Detailed Description

CORBA Name/value pair implementation.

These occur only in "NVList" (named value list) data structures. The binary form of the data structure is frozen and visible to programs using it (e.g. from C). The C++ class supports some programming discipline, e.g. to avoid memory leaks. They just represent parameters to calls. The name is optional, and the value is packaged as an Any. The flags indicate parameter mode, and some ownership rules for "top level" memory.


Member Typedef Documentation

typedef NamedValue_out CORBA::NamedValue::_out_type

typedef NamedValue_ptr CORBA::NamedValue::_ptr_type

typedef NamedValue_var CORBA::NamedValue::_var_type


Constructor & Destructor Documentation

CORBA::NamedValue::~NamedValue ( void   )  [protected]

Destructor.

Protected destructor to enforce proper memory management through the reference counting mechanism.

ACE_INLINE CORBA::NamedValue::NamedValue ( void   )  [private]

private constructor. Cannot be directly instantiated other than by its friends.


Member Function Documentation

CORBA::ULong CORBA::NamedValue::_decr_refcnt ( void   ) 

ACE_INLINE CORBA::NamedValue * CORBA::NamedValue::_duplicate ( NamedValue  )  [static]

TAO_BEGIN_VERSIONED_NAMESPACE_DECL CORBA::ULong CORBA::NamedValue::_incr_refcnt ( void   ) 

ACE_INLINE CORBA::NamedValue * CORBA::NamedValue::_nil ( void   )  [static]

ACE_INLINE CORBA::Flags CORBA::NamedValue::flags ( void   )  const

return the parameter mode flag

ACE_INLINE const char * CORBA::NamedValue::name ( void   )  const

optional name

ACE_INLINE CORBA::Any_ptr CORBA::NamedValue::value ( void   )  const

return the value


Friends And Related Function Documentation

friend class ::TAO_NVList_Adapter_Impl [friend]

friend class NVList [friend]

friend class Request [friend]


Member Data Documentation

Any CORBA::NamedValue::any_ [private]

holds the value

Flags CORBA::NamedValue::flags_ [private]

parameter mode flags

char* CORBA::NamedValue::name_ [private]

optional IDL name of the parameter

ACE_Atomic_Op<TAO_SYNCH_MUTEX, ULong> CORBA::NamedValue::refcount_ [private]

Reference counter.


The documentation for this class was generated from the following files:
Generated on Sun Jul 9 09:51:37 2006 for TAO_AnyTypeCode by  doxygen 1.4.7-1