dbertoni    2004/11/10 15:24:20

  Modified:    c/src/xalanc/Include XalanMemMgrAutoPtr.hpp
  Log:
  Added accessors to get to memory managers and commented out questionable 
post-increment operator.
  
  Revision  Changes    Path
  1.7       +29 -1     xml-xalan/c/src/xalanc/Include/XalanMemMgrAutoPtr.hpp
  
  Index: XalanMemMgrAutoPtr.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/xalanc/Include/XalanMemMgrAutoPtr.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- XalanMemMgrAutoPtr.hpp    10 Nov 2004 18:02:25 -0000      1.6
  +++ XalanMemMgrAutoPtr.hpp    10 Nov 2004 23:24:20 -0000      1.7
  @@ -163,6 +163,18 @@
                return m_pointerInfo.second;
        }
   
  +    MemoryManagerType*
  +    getMemoryManager()
  +    {
  +        return m_pointerInfo.first;
  +    }
  +
  +    const MemoryManagerType*
  +    getMemoryManager() const
  +    {
  +        return m_pointerInfo.first;
  +    }
  +
        MemMgrAutoPtrData
        release()
        {               
  @@ -172,7 +184,7 @@
                
                return MemMgrAutoPtrData(tmp);
        }
  -     
  +
        Type*
        releasePtr()
        {               
  @@ -343,6 +355,18 @@
                return m_pointerInfo.m_size;
        }
   
  +    MemoryManagerType*
  +    getMemoryManager()
  +    {
  +        return m_pointerInfo.m_memoryManager;
  +    }
  +
  +    const MemoryManagerType*
  +    getMemoryManager() const
  +    {
  +        return m_pointerInfo.m_memoryManager;
  +    }
  +
        XalanMemMgrAutoPtrArray<Type>&
        operator++ ()
        {
  @@ -351,6 +375,9 @@
                return *this;
        }
   
  +    /* Since this class is not reference-counted, I don't see how this
  +       could work, since the destruction of the temporary will free
  +       the controlled pointer.
        XalanMemMgrAutoPtrArray<Type>
        operator++ (int)
        {
  @@ -359,6 +386,7 @@
   
                return temp;
        }
  +    */
   
        MemMgrAutoPtrArrayData
        release()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to