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:
PAP, EAM, IfA

Ross Harman, MHPCC

Version:
Revision
1.28
Name
Date:
Date
2007/01/23 22:47: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:

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

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

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 Fri Feb 2 22:24:41 2007 for pslib by  doxygen 1.5.1