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

Cache_Entries.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 //$Id: Cache_Entries.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00003 
00004 #include "tao/Cache_Entries.h"
00005 #include "tao/Transport.h"
00006 
00007 
00008 #if !defined (__ACE_INLINE__)
00009 # include "tao/Cache_Entries.inl"
00010 #endif /* __ACE_INLINE__ */
00011 
00012 ACE_RCSID(tao, Cache_Entries, "$Id: Cache_Entries.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $")
00013 
00014 TAO_Cache_IntId::TAO_Cache_IntId (TAO_Transport *transport)
00015   : transport_ (TAO_Transport::_duplicate (transport)),
00016     recycle_state_ (ACE_RECYCLABLE_UNKNOWN)
00017 {
00018 }
00019 
00020 TAO_Cache_IntId::~TAO_Cache_IntId (void)
00021 {
00022   TAO_Transport::release (this->transport_);
00023 }
00024 
00025 TAO_Cache_IntId&
00026 TAO_Cache_IntId::operator= (const TAO_Cache_IntId &rhs)
00027 {
00028   if (this != &rhs)
00029     {
00030       this->recycle_state_ = rhs.recycle_state_;
00031 
00032       TAO_Transport* old_transport = this->transport_;
00033       this->transport_ = TAO_Transport::_duplicate (rhs.transport_);
00034       TAO_Transport::release (old_transport);
00035     }
00036 
00037   return *this;
00038 }

Generated on Mon Jun 16 13:48:02 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002