bitarray.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014_2/
  • 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
#2 15903 Matt Attaway Everything should be happy now between the Workshop and the depot paths
#1 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
//guest/perforce_software/p4/2014.2/support/bitarray.h
#1 12189 Matt Attaway Initial (and much belated) drop of 2014.2 p4 source code