< prev index next >

src/share/vm/utilities/bitMap.hpp

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_UTILITIES_BITMAP_HPP
  26 #define SHARE_VM_UTILITIES_BITMAP_HPP
  27 
  28 #include "memory/allocation.hpp"

  29 
  30 // Forward decl;
  31 class BitMapClosure;
  32 
  33 // Operations for bitmaps represented as arrays of unsigned integers.
  34 // Bit offsets are numbered from 0 to size-1.
  35 
  36 // The "abstract" base BitMap class.
  37 //
  38 // The constructor and destructor are protected to prevent
  39 // creation of BitMap instances outside of the BitMap class.
  40 //
  41 // The BitMap class doesn't use virtual calls on purpose,
  42 // this ensures that we don't get a vtable unnecessarily.
  43 //
  44 // The allocation of the backing storage for the BitMap are handled by
  45 // the subclasses. BitMap doesn't allocate or delete backing storage.
  46 class BitMap VALUE_OBJ_CLASS_SPEC {
  47   friend class BitMap2D;
  48 




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_UTILITIES_BITMAP_HPP
  26 #define SHARE_VM_UTILITIES_BITMAP_HPP
  27 
  28 #include "memory/allocation.hpp"
  29 #include "utilities/align.hpp"
  30 
  31 // Forward decl;
  32 class BitMapClosure;
  33 
  34 // Operations for bitmaps represented as arrays of unsigned integers.
  35 // Bit offsets are numbered from 0 to size-1.
  36 
  37 // The "abstract" base BitMap class.
  38 //
  39 // The constructor and destructor are protected to prevent
  40 // creation of BitMap instances outside of the BitMap class.
  41 //
  42 // The BitMap class doesn't use virtual calls on purpose,
  43 // this ensures that we don't get a vtable unnecessarily.
  44 //
  45 // The allocation of the backing storage for the BitMap are handled by
  46 // the subclasses. BitMap doesn't allocate or delete backing storage.
  47 class BitMap VALUE_OBJ_CLASS_SPEC {
  48   friend class BitMap2D;
  49 


< prev index next >