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.17
Name
rel5_0
Date:
Date
2005/02/17 19:26:23
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:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  psBitSet
 Struct containing array of bytes to hold bit data and corresponding array length. More...

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 Mon Apr 4 18:24:45 2005 for Pan-STARRS Foundation Library by  doxygen 1.3.9.1