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

TAO_Transport_Descriptor_Interface Class Reference

An abstract base class for Transport Property. More...

#include <Transport_Descriptor_Interface.h>

Inheritance diagram for TAO_Transport_Descriptor_Interface:

Inheritance graph
[legend]
Collaboration diagram for TAO_Transport_Descriptor_Interface:

Collaboration graph
[legend]
List of all members.

Public Methods

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

virtual TAO_Transport_Descriptor_Interface * duplicate (void)=0
 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)=0
 Try to determine if this object is same as the <other_prop>. More...

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

TAO_Endpointendpoint (void)
 Return the underlying endpoint object. More...

void set_bidir_flag (CORBA::Boolean flag)
 Set the BiDir flag. More...


Protected Methods

 TAO_Transport_Descriptor_Interface (void)
 Default Constructor. More...

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


Protected Attributes

TAO_Endpointendpoint_
 The base property of the connection ie. the peer's endpoint. More...

CORBA::Boolean bidir_flag_
 Should the endpoint be used in either direction? More...

CORBA::Boolean endpoint_from_heap_
 Is the endpoint allocated on the heap? If so, we will have to delete it when we destruct ourselves. More...


Detailed Description

An abstract base class for Transport Property.

This class provides an abstract interface and holds minimal info on which the Transport Caching scheme is based on. Concrete connection properties can be got by inheriting from this class and implementing the virtual functions. Note 1: Additional properties for connection like Qos, Priority that the RT folks would need, can be added by inheriting from this class and providing the following methods. 1. duplicate () 2. is_equivalent () 3. hash ()

Definition at line 43 of file Transport_Descriptor_Interface.h.


Constructor & Destructor Documentation

TAO_Transport_Descriptor_Interface::~TAO_Transport_Descriptor_Interface void    [virtual]
 

Destructor.

Definition at line 16 of file Transport_Descriptor_Interface.cpp.

References endpoint_, and endpoint_from_heap_.

00017 {
00018   if (this->endpoint_from_heap_)
00019     delete this->endpoint_;
00020 }

ACE_INLINE TAO_Transport_Descriptor_Interface::TAO_Transport_Descriptor_Interface void    [protected]
 

Default Constructor.

Definition at line 15 of file Transport_Descriptor_Interface.inl.

00016       : endpoint_ (0),
00017         bidir_flag_ (0),
00018         endpoint_from_heap_ (0)
00019 {
00020 }

ACE_INLINE TAO_Transport_Descriptor_Interface::TAO_Transport_Descriptor_Interface TAO_Endpoint   endpoint,
CORBA::Boolean    flag = 0
[protected]
 

Constructor.

Definition at line 5 of file Transport_Descriptor_Interface.inl.

00007       : endpoint_ (endpoint),
00008         bidir_flag_ (0),
00009         endpoint_from_heap_ (flag)
00010 {
00011 }


Member Function Documentation

virtual TAO_Transport_Descriptor_Interface* TAO_Transport_Descriptor_Interface::duplicate void    [pure virtual]
 

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

Implemented in TAO_Base_Transport_Property.

Referenced by TAO_Cache_ExtId::duplicate, and TAO_Cache_ExtId::operator=.

ACE_INLINE TAO_Endpoint * TAO_Transport_Descriptor_Interface::endpoint void   
 

Return the underlying endpoint object.

Definition at line 24 of file Transport_Descriptor_Interface.inl.

References endpoint_.

Referenced by TAO_Connector::connect, and TAO_IIOP_Connector::make_connection.

00025 {
00026   return this->endpoint_;
00027 }

virtual u_long TAO_Transport_Descriptor_Interface::hash void    const [pure virtual]
 

Generate hash value for our class.

Implemented in TAO_Base_Transport_Property.

Referenced by TAO_Cache_ExtId::hash.

virtual CORBA::Boolean TAO_Transport_Descriptor_Interface::is_equivalent const TAO_Transport_Descriptor_Interface *    other_prop [pure virtual]
 

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

Implemented in TAO_Base_Transport_Property.

Referenced by TAO_Transport_Cache_Manager::is_wakeup_useful, TAO_Cache_ExtId::operator!=, and TAO_Cache_ExtId::operator==.

ACE_INLINE void TAO_Transport_Descriptor_Interface::set_bidir_flag CORBA::Boolean    flag
 

Set the BiDir flag.

Definition at line 31 of file Transport_Descriptor_Interface.inl.

References bidir_flag_.

Referenced by TAO_IIOP_Connection_Handler::process_listen_point_list.

00032 {
00033   this->bidir_flag_ = flag;
00034 }


Member Data Documentation

CORBA::Boolean TAO_Transport_Descriptor_Interface::bidir_flag_ [protected]
 

Should the endpoint be used in either direction?

Definition at line 80 of file Transport_Descriptor_Interface.h.

Referenced by set_bidir_flag.

TAO_Endpoint* TAO_Transport_Descriptor_Interface::endpoint_ [protected]
 

The base property of the connection ie. the peer's endpoint.

Definition at line 77 of file Transport_Descriptor_Interface.h.

Referenced by TAO_Base_Transport_Property::duplicate, endpoint, TAO_Base_Transport_Property::hash, TAO_Base_Transport_Property::is_equivalent, and ~TAO_Transport_Descriptor_Interface.

CORBA::Boolean TAO_Transport_Descriptor_Interface::endpoint_from_heap_ [protected]
 

Is the endpoint allocated on the heap? If so, we will have to delete it when we destruct ourselves.

Definition at line 84 of file Transport_Descriptor_Interface.h.

Referenced by ~TAO_Transport_Descriptor_Interface.


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