#include <NVList.h>
Collaboration diagram for CORBA::NamedValue:
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 |
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.
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.
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
friend class ::TAO_NVList_Adapter_Impl [friend] |
friend class NVList [friend] |
friend class Request [friend] |
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
Reference counter.