TAO_Base_Transport_Property Class Reference

A concrete implementation for connnection property. More...

#include <Base_Transport_Property.h>

Inheritance diagram for TAO_Base_Transport_Property:

Inheritance graph
[legend]
Collaboration diagram for TAO_Base_Transport_Property:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Base_Transport_Property (void)
 Default constructor.
 TAO_Base_Transport_Property (TAO_Endpoint *endpoint, CORBA::Boolean flag=false)
 Constructor.
virtual ~TAO_Base_Transport_Property (void)
 Destructor.
 TAO_Base_Transport_Property (const TAO_Base_Transport_Property &rhs)
 The copy constructor.
virtual TAO_Transport_Descriptor_Interfaceduplicate (void)
virtual CORBA::Boolean is_equivalent (const TAO_Transport_Descriptor_Interface *other_prop)
 Try to determine if this object is same as the other_prop.
virtual u_long hash (void) const
 Generate hash value for our class.

Detailed Description

A concrete implementation for connnection property.

This class is a concrete implementation of a simple connection property class. This provides an implementation for the virtual functions declared in TAO_Transport_Descriptor_Interface.

Definition at line 39 of file Base_Transport_Property.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property ( void   ) 

Default constructor.

Definition at line 8 of file Base_Transport_Property.inl.

00009 {
00010 }

ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property ( TAO_Endpoint endpoint,
CORBA::Boolean  flag = false 
)

Constructor.

Definition at line 14 of file Base_Transport_Property.inl.

00016   : TAO_Transport_Descriptor_Interface (endpoint,
00017                                          flag)
00018 {
00019 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Base_Transport_Property::~TAO_Base_Transport_Property ( void   )  [virtual]

Destructor.

Definition at line 16 of file Base_Transport_Property.cpp.

00017 {
00018 }

ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property ( const TAO_Base_Transport_Property rhs  ) 

The copy constructor.

Definition at line 22 of file Base_Transport_Property.inl.

00024   : TAO_Transport_Descriptor_Interface (rhs.endpoint_->duplicate (),
00025                                         true)
00026 {
00027 }


Member Function Documentation

TAO_Transport_Descriptor_Interface * TAO_Base_Transport_Property::duplicate ( void   )  [virtual]

This call allocates and copies the contents of this class and returns the pointer

Implements TAO_Transport_Descriptor_Interface.

Definition at line 21 of file Base_Transport_Property.cpp.

References ACE_NEW_RETURN, TAO_Endpoint::duplicate(), and TAO_Transport_Descriptor_Interface::endpoint_.

00022 {
00023   // Get a copy of the underlying endpoint
00024   TAO_Endpoint *const endpt = this->endpoint_->duplicate ();
00025   if (endpt == 0)
00026     return 0;
00027 
00028   // Construct a copy of our class
00029   TAO_Base_Transport_Property *prop = 0;
00030   ACE_NEW_RETURN (prop, TAO_Base_Transport_Property (endpt, true), 0);
00031   return prop;
00032 }

u_long TAO_Base_Transport_Property::hash ( void   )  const [virtual]

Generate hash value for our class.

Implements TAO_Transport_Descriptor_Interface.

Definition at line 50 of file Base_Transport_Property.cpp.

References TAO_Transport_Descriptor_Interface::endpoint_, and TAO_Endpoint::hash().

00051 {
00052   return this->endpoint_->hash ();
00053 }

CORBA::Boolean TAO_Base_Transport_Property::is_equivalent ( const TAO_Transport_Descriptor_Interface other_prop  )  [virtual]

Try to determine if this object is same as the other_prop.

Implements TAO_Transport_Descriptor_Interface.

Definition at line 37 of file Base_Transport_Property.cpp.

References TAO_Transport_Descriptor_Interface::endpoint_.

00038 {
00039   const TAO_Base_Transport_Property *other_desc =
00040     dynamic_cast<const TAO_Base_Transport_Property *> (rhs);
00041 
00042   if (other_desc == 0)
00043     return false;
00044 
00045   return this->endpoint_->is_equivalent (other_desc->endpoint_);
00046 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:39:22 2010 for TAO by  doxygen 1.4.7