bitarray.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014-1/
  • support/
  • bitarray.h
  • View
  • Commits
  • Open Download .zip Download (626 B)
/*
 * Copyright 2000 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

class BitArray {
public:
    typedef unsigned int Index;

    // BitBlock needs to match the type used by the select fd_set arrays
    // and needs to be 32 bits.
    // I can not find a portable way to do that for sure
    // but int is pretty safe for that
    typedef long BitBlock;

    BitArray( Index nBits );
    ~BitArray() { delete [] w; }
    int tas( Index );
    int operator []( Index ) const;
    int clear( Index );
    void *fdset() { return (void *)w; }
private:
    BitBlock *w;
};
# Change User Description Committed
#1 15902 Matt Attaway A second renaming that I will not obliterate as a badge of shame
//guest/perforce_software/p4/2014_1/support/bitarray.h
#1 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
//guest/perforce_software/p4/2014.1/support/bitarray.h
#1 12188 Matt Attaway Move 'main' p4 into a release specific directory in prep for new releases
//guest/perforce_software/p4/support/bitarray.h
#1 9129 Matt Attaway Initial commit of the 2014.1 p4/p4api source code