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.18
Name
rel6_0
Date:
Date
2005/06/08 23:40:45
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

psBitSetpsBitSetAlloc (psS32 n)
 Allocate a psBitSet.
psBitSetpsBitSetSet (psBitSet *inMask, psS32 bit)
 Set a bit.
psBitSetpsBitSetClear (psBitSet *inMask, psS32 bit)
 Clear a bit.
psBool psBitSetTest (const psBitSet *inMask, psS32 bit)
 Test the value of a bit.
psBitSetpsBitSetOp (psBitSet *outMask, const psBitSet *inMask1, char *operator, const psBitSet *inMask2)
 Perform a binary operation on two psBitSets.
psBitSetpsBitSetNot (psBitSet *outBitSet, const psBitSet *inBitSet)
 Perform a not operation on a psBitSet.
char * psBitSetToString (const psBitSet *inMask)
 Convert the psBitSet to a string of ones and zeros.


Generated on Wed Jun 15 11:00:58 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1