Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

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 Methods

 TAO_Base_Transport_Property (void)
 Default constructor. More...

 TAO_Base_Transport_Property (TAO_Endpoint *endpoint, CORBA::Boolean flag=0)
 Constructor. More...

virtual ~TAO_Base_Transport_Property (void)
 Destructor. More...

 TAO_Base_Transport_Property (const TAO_Base_Transport_Property &rhs)
 The copy constructor. More...

virtual TAO_Transport_Descriptor_Interfaceduplicate (void)
 This call allocates and copies the contents of this class and returns the pointer. More...

virtual CORBA::Boolean is_equivalent (const TAO_Transport_Descriptor_Interface *other_prop)
 Try to determine if this object is same as the <other_prop>. More...

virtual u_long hash (void) const
 Generate hash value for our class. More...


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 36 of file Base_Transport_Property.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property void   
 

Default constructor.

Definition at line 5 of file Base_Transport_Property.inl.

00006 {
00007 
00008 }

ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property TAO_Endpoint   endpoint,
CORBA::Boolean    flag = 0
 

Constructor.

Definition at line 12 of file Base_Transport_Property.inl.

00014   : TAO_Transport_Descriptor_Interface (endpoint,
00015                                          flag)
00016 {
00017 }

TAO_Base_Transport_Property::~TAO_Base_Transport_Property void    [virtual]
 

Destructor.

Definition at line 15 of file Base_Transport_Property.cpp.

00016 {
00017 }

ACE_INLINE TAO_Base_Transport_Property::TAO_Base_Transport_Property const TAO_Base_Transport_Property &    rhs
 

The copy constructor.

Definition at line 20 of file Base_Transport_Property.inl.

00022   : TAO_Transport_Descriptor_Interface (rhs.endpoint_->duplicate (),
00023                                         1)
00024 {
00025 
00026 }


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 *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,
00031                   TAO_Base_Transport_Property (endpt,
00032                                                1),
00033                   0);
00034   return prop;
00035 }

u_long TAO_Base_Transport_Property::hash void    const [virtual]
 

Generate hash value for our class.

Implements TAO_Transport_Descriptor_Interface.

Definition at line 59 of file Base_Transport_Property.cpp.

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

00060 {
00061   return this->endpoint_->hash ();
00062 }

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 39 of file Base_Transport_Property.cpp.

References TAO_Transport_Descriptor_Interface::endpoint_, and TAO_Endpoint::is_equivalent.

00041 {
00042   // Do away with const.
00043   TAO_Transport_Descriptor_Interface *r =
00044     ACE_const_cast (TAO_Transport_Descriptor_Interface *,
00045                     rhs);
00046 
00047   TAO_Base_Transport_Property *other_desc =
00048     ACE_dynamic_cast (TAO_Base_Transport_Property *,
00049                       r);
00050 
00051   if (other_desc == 0)
00052     return 0;
00053 
00054   return this->endpoint_->is_equivalent (other_desc->endpoint_);
00055 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:04:01 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002