diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-07-28 08:28:33 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-07-28 08:28:33 +0000 |
commit | a7a3f30094c389870b4e1f817d7cca6c0b663e19 (patch) | |
tree | 287c236baa7aef12a87a7bee2623ab698da6a411 /TAO/tao/PortableServer/Servant_Base.i | |
parent | 207a63b15f4f6d7d3b66eb3a906ad00438e277e3 (diff) | |
download | ATCD-a7a3f30094c389870b4e1f817d7cca6c0b663e19.tar.gz |
ChangeLogTag:Thu Jul 28 00:43:34 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'TAO/tao/PortableServer/Servant_Base.i')
-rw-r--r-- | TAO/tao/PortableServer/Servant_Base.i | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Servant_Base.i b/TAO/tao/PortableServer/Servant_Base.i index b48403a8e3c..a0f38b795a9 100644 --- a/TAO/tao/PortableServer/Servant_Base.i +++ b/TAO/tao/PortableServer/Servant_Base.i @@ -2,8 +2,42 @@ // // $Id$ + +ACE_INLINE +TAO_ServantBase_var::TAO_ServantBase_var (void) + : ptr_ (0) +{ +} + +ACE_INLINE +TAO_ServantBase_var::TAO_ServantBase_var (TAO_ServantBase *p) + : ptr_ (p) +{ +} + +ACE_INLINE TAO_ServantBase * +TAO_ServantBase_var::operator->() const +{ + return this->ptr_; +} + +ACE_INLINE TAO_ServantBase * +TAO_ServantBase_var::in (void) const +{ + return this->ptr_; +} + +ACE_INLINE TAO_ServantBase *& +TAO_ServantBase_var::inout (void) +{ + return this->ptr_; +} + +// ------------------------------------------------------------------- + ACE_INLINE u_long TAO_Servant_Hash::operator () (PortableServer::Servant servant) const { return static_cast<u_long> (reinterpret_cast<ptrdiff_t> (servant)); } + |