Changeset 1407 for trunk/psLib/src/collections/psBitSet.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psBitSet.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psBitSet.h
r1172 r1407 1 1 2 /** @file psBitSet.h 2 3 * … … 12 13 * @author Ross Harman, MHPCC 13 14 * 14 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-0 7-01 21:48:11$15 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-08-07 00:06:06 $ 16 17 * 17 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 20 20 21 #ifndef PSBITSET_H 21 # define PSBITSET_H22 # define PSBITSET_H 22 23 23 24 /// @addtogroup BitSet … … 25 26 26 27 /******************************************************************************/ 28 27 29 /* TYPE DEFINITIONS */ 30 28 31 /******************************************************************************/ 29 32 … … 35 38 typedef struct 36 39 { 40 37 41 int n; /**< Number of bytes in the array */ 42 38 43 char *bits; /**< Aray of bytes holding bits */ 39 44 } … … 41 46 42 47 /*****************************************************************************/ 48 43 49 /* FUNCTION PROTOTYPES */ 50 44 51 /*****************************************************************************/ 45 52 … … 51 58 * @return psBitSet*: Pointer to struct containing array of bits and size of array. 52 59 */ 60 53 61 /*@null@*/ 54 psBitSet* psBitSetAlloc( 55 int n /**< Number of bits in psBitSet array */ 56 ); 62 63 psBitSet *psBitSetAlloc(int n 64 /**< Number of bits in psBitSet array */ 65 ); 57 66 58 67 /** Set a bit. … … 64 73 * @return psBitSet*: Pointer to struct containing psBitSet. 65 74 */ 66 psBitSet* psBitSetSet( 67 /*@returned@*/psBitSet *restrict inMask, /**< Pointer to psBitSet to be set. */ 68 int bit /**< Bit to be set. */ 75 psBitSet *psBitSetSet( 76 77 /* @returned@ */ psBitSet * restrict inMask, 78 /**< Pointer to psBitSet to be set. */ 79 80 int bit/**< Bit to be set. */ 69 81 ); 70 82 … … 78 90 * @return int: Value of bit, either one or zero. 79 91 */ 80 bool psBitSetTest( 81 const psBitSet *restrict inMask, /**< Pointer psBitSet to be tested. */ 82 int bit /**< Bit to be tested. */ 83 ); 92 93 bool psBitSetTest(const psBitSet * restrict inMask, 94 /**< Pointer psBitSet to be tested. */ 95 96 int bit /**< Bit to be tested. */ 97 ); 84 98 85 99 /** Perform a binary operation on two psBitSets … … 90 104 * @return psBitSet*: Pointer to struct containing result of binary operation. 91 105 */ 92 psBitSet* psBitSetOp( 93 /*@returned@*/psBitSet *restrict outMask, /**< Resulting psBitSet from binary operation */ 94 const psBitSet *restrict inMask1, /**< First psBitSet on which to operate */ 95 char *operator, /**< Bit operation */ 96 const psBitSet *restrict inMask2 /**< First psBitSet on which to operate */ 106 psBitSet *psBitSetOp( 107 108 /* @returned@ */ psBitSet * restrict outMask, 109 /**< Resulting psBitSet from binary operation */ 110 111 const psBitSet * restrict inMask1, 112 /**< First psBitSet on which to operate */ 113 114 char *operator, /**< Bit operation */ 115 116 const psBitSet * restrict inMask2 117 /**< First psBitSet on which to operate */ 97 118 ); 98 119 … … 103 124 * @return psBitSet*: Pointer to struct containing result of operation. 104 125 */ 105 psBitSet* psBitSetNot( 106 psBitSet *outBitSet, /**< Resulting psBitSet from operation */ 107 const psBitSet *restrict inBitSet /**< Input psBitSet */ 108 ); 126 127 psBitSet *psBitSetNot(psBitSet * outBitSet, 128 /**< Resulting psBitSet from operation */ 129 130 const psBitSet * restrict inBitSet 131 /**< Input psBitSet */ 132 ); 109 133 110 134 /** Convert the psBitSet to a string of ones and zeros. … … 115 139 * @return char*: Pointer to character array containing string data. 116 140 */ 117 char *psBitSetToString( 118 const psBitSet *restrict inMask /**< psBitSet to convert */ 119 ); 141 142 char *psBitSetToString(const psBitSet * restrict inMask 143 /**< psBitSet to convert */ 144 ); 120 145 121 146 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
