Home | History | Annotate | Download | only in usetperf
      1 /*
      2 ***********************************************************************
      3 *  2016 and later: Unicode, Inc. and others.
      4 * License & terms of use: http://www.unicode.org/copyright.html#License
      5 ***********************************************************************
      6 ***********************************************************************
      7 * Copyright (c) 2002-2005, International Business Machines
      8 * Corporation and others.  All Rights Reserved.
      9 ***********************************************************************
     10 * 2002-09-20 aliu Created.
     11 */
     12 #ifndef __BITSET_H__
     13 #define __BITSET_H__
     14 
     15 #include "unicode/utypes.h"
     16 
     17 /**
     18  * A simple, limited clone of the java.util.BitSet.
     19  */
     20 class BitSet {
     21 
     22     uint32_t len;
     23     int32_t* data;
     24 
     25     void ensureCapacity(uint32_t minLen);
     26 
     27 public:
     28 
     29     BitSet();
     30     ~BitSet();
     31 
     32     UBool get(int32_t bitIndex) const;
     33 
     34     void set(int32_t bitIndex);
     35 
     36     // Non-java
     37     void clearAll();
     38 
     39     // TODO add other methods as needed.
     40 };
     41 
     42 #endif
     43