dbertoni    01/01/15 18:44:07

  Modified:    c/src/PlatformSupport ArenaAllocator.hpp
  Log:
  Allow block size to be changed dynamically.
  
  Revision  Changes    Path
  1.8       +14 -1     xml-xalan/c/src/PlatformSupport/ArenaAllocator.hpp
  
  Index: ArenaAllocator.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/ArenaAllocator.hpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ArenaAllocator.hpp        2000/11/03 21:38:17     1.7
  +++ ArenaAllocator.hpp        2001/01/16 02:44:07     1.8
  @@ -129,6 +129,19 @@
        }
   
        /*
  +      * Set size of an ArenaBlock, that is, the number
  +      * of objects in each block.  Only affects blocks
  +      * allocated after the call.
  +      *
  +      * @param theSize The size of the block
  +      */
  +     size_type
  +     setBlockSize(size_type  theSize)
  +     {
  +             m_blockSize = theSize;
  +     }
  +
  +     /*
         * Get the number of ArenaBlocks currently allocated.
         *
         * @return The number of blocks.
  @@ -197,7 +210,7 @@
        typedef std::vector<ArenaBlockType*>    ArenaBlockListType;
   #endif
   
  -     const size_type         m_blockSize;
  +     size_type                       m_blockSize;
   
        ArenaBlockListType      m_blocks;
   
  
  
  

Reply via email to