diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-04 02:39:12 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-08-04 02:39:12 +0000 |
commit | 46a39dd4cd67f4eaa047bfb45acdbc97540a6530 (patch) | |
tree | 987ed4a510d9086983d2a107dc4d81e64a589a81 /ace/Based_Pointer_T.i | |
parent | c81d86d52e45aa32c5737d549f44e2ae212898b9 (diff) | |
download | ATCD-46a39dd4cd67f4eaa047bfb45acdbc97540a6530.tar.gz |
ChangeLogTag:Tue Aug 3 18:50:02 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Based_Pointer_T.i')
-rw-r--r-- | ace/Based_Pointer_T.i | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/ace/Based_Pointer_T.i b/ace/Based_Pointer_T.i index 4409abf03b0..07ce496a908 100644 --- a/ace/Based_Pointer_T.i +++ b/ace/Based_Pointer_T.i @@ -45,7 +45,8 @@ ACE_Based_Pointer_Basic<CONCRETE>::operator *(void) const template <class CONCRETE> ACE_INLINE CONCRETE * ACE_Based_Pointer_Basic<CONCRETE>::addr (void) const { - ACE_TRACE ("ACE_Based_Pointer_Basic<CONCRETE>::addr"); + ACE_TRACE ("ACE_Based_Pointer_Basic<CONCRETE>::operator CONCRETE *()"); + if (this->target_ == -1) return 0; else @@ -53,6 +54,14 @@ ACE_Based_Pointer_Basic<CONCRETE>::addr (void) const ACE_COMPUTE_BASED_POINTER (this)); } +template <class CONCRETE> ACE_INLINE +ACE_Based_Pointer_Basic<CONCRETE>::operator CONCRETE *() const +{ + ACE_TRACE ("ACE_Based_Pointer_Basic<CONCRETE>::operator CONCRETE *()"); + + return this->addr (); +} + template <class CONCRETE> ACE_INLINE CONCRETE ACE_Based_Pointer_Basic<CONCRETE>::operator [] (long index) const { @@ -111,3 +120,17 @@ ACE_Based_Pointer_Basic<CONCRETE>::operator >= (const ACE_Based_Pointer_Basic<CO return ACE_COMPUTE_BASED_POINTER (this) >= ACE_COMPUTE_BASED_POINTER (&rhs); } +template <class CONCRETE> ACE_INLINE void +ACE_Based_Pointer_Basic<CONCRETE>::operator= (const ACE_Based_Pointer_Basic<CONCRETE> &rhs) +{ + ACE_TRACE ("ACE_Based_Pointer_Basic<CONCRETE>::operator="); + *this = rhs.addr (); +} + +template <class CONCRETE> ACE_INLINE void +ACE_Based_Pointer<CONCRETE>::operator= (const ACE_Based_Pointer<CONCRETE> &rhs) +{ + ACE_TRACE ("ACE_Based_Pointer<CONCRETE>::operator="); + *this = rhs.addr (); +} + |