A concrete implementation for connnection property. More...
#include <Base_Transport_Property.h>


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_Interface * | duplicate (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. | |
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.
| TAO_Base_Transport_Property::TAO_Base_Transport_Property | ( | void | ) |
| 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.
: TAO_Transport_Descriptor_Interface (endpoint, flag) { }
| TAO_Base_Transport_Property::~TAO_Base_Transport_Property | ( | void | ) | [virtual] |
| 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.
: TAO_Transport_Descriptor_Interface (rhs.endpoint_->duplicate (), true) { }
| 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.
{
// Get a copy of the underlying endpoint
TAO_Endpoint *const endpt = this->endpoint_->duplicate ();
if (endpt == 0)
return 0;
// Construct a copy of our class
TAO_Base_Transport_Property *prop = 0;
ACE_NEW_RETURN (prop, TAO_Base_Transport_Property (endpt, true), 0);
return prop;
}
| 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.
| 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.
{
const TAO_Base_Transport_Property *other_desc =
dynamic_cast<const TAO_Base_Transport_Property *> (rhs);
if (other_desc == 0)
return false;
return this->endpoint_->is_equivalent (other_desc->endpoint_);
}
1.7.0