Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psBitSet.h File Reference


Detailed Description

Creates an array of bytes of arbitrary length for storing individual bits.

Bit masks are useful tools for toggling various flags and options. This set of functions module provides a mechanism to create an array of bits of arbitrary length and manipulate them with basic binary operations. A print function is also provided to display the entire set of bits in binary format as a string.

Author:
Ross Harman, MHPCC
Version:
Revision
1.23
Name
rel7
Date:
Date
2005/08/30 01:14:13
Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii

Definition in file psBitSet.h.

#include "psType.h"

Include dependency graph for psBitSet.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool psMemCheckBitSet (psPtr ptr)
 Checks the type of a particular pointer.
psBitSetpsBitSetAlloc (long nalloc)
 Allocate a psBitSet.
psBitSetpsBitSetSet (psBitSet *bitSet, long bit)
 Set a bit.
psBitSetpsBitSetClear (psBitSet *bitSet, long bit)
 Clear a bit.
bool psBitSetTest (const psBitSet *bitSet, long bit)
 Test the value of a bit.
psBitSetpsBitSetOp (psBitSet *outBitSet, const psBitSet *inBitSet1, const char *operator, const psBitSet *inBitSet2)
 Perform a binary operation on two psBitSets.
psBitSetpsBitSetNot (psBitSet *outBitSet, const psBitSet *inBitSet)
 Perform a not operation on a psBitSet.
psString psBitSetToString (const psBitSet *bitSet)
 Convert the psBitSet to a string of ones and zeros.


Generated on Wed Sep 14 10:42:51 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2