IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 2:06:06 PM (22 years ago)
Author:
desonia
Message:

another attempt to get astyle to get it right.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psBitSet.h

    r1172 r1407  
     1
    12/** @file  psBitSet.h
    23 *
     
    1213 *  @author Ross Harman, MHPCC
    1314 *
    14  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-07-01 21:48:11 $
     15 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2004-08-07 00:06:06 $
    1617 *
    1718 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1920
    2021#ifndef PSBITSET_H
    21 #define PSBITSET_H
     22#    define PSBITSET_H
    2223
    2324/// @addtogroup BitSet
     
    2526
    2627/******************************************************************************/
     28
    2729/*  TYPE DEFINITIONS                                                          */
     30
    2831/******************************************************************************/
    2932
     
    3538typedef struct
    3639{
     40
    3741    int n;      /**< Number of bytes in the array */
     42
    3843    char *bits; /**< Aray of bytes holding bits */
    3944}
     
    4146
    4247/*****************************************************************************/
     48
    4349/* FUNCTION PROTOTYPES                                                       */
     50
    4451/*****************************************************************************/
    4552
     
    5158 *  @return  psBitSet*: Pointer to struct containing array of bits and size of array.
    5259 */
     60
    5361/*@null@*/
    54 psBitSet* psBitSetAlloc(
    55     int n   /**< Number of bits in psBitSet array */
    56 );
     62
     63psBitSet *psBitSetAlloc(int n
     64                        /**< Number of bits in psBitSet array */
     65                       );
    5766
    5867/** Set a bit.
     
    6473 *  @return  psBitSet*: Pointer to struct containing psBitSet.
    6574 */
    66 psBitSet* psBitSetSet(
    67     /*@returned@*/psBitSet *restrict inMask,  /**< Pointer to psBitSet to be set. */
    68     int bit                     /**< Bit to be set. */
     75psBitSet *psBitSetSet(
     76
     77    /* @returned@ */ psBitSet * restrict inMask,
     78    /**< Pointer to psBitSet to be set. */
     79
     80    int bit/**< Bit to be set. */
    6981);
    7082
     
    7890 *  @return  int: Value of bit, either one or zero.
    7991 */
    80 bool psBitSetTest(
    81     const psBitSet *restrict inMask,    /**< Pointer psBitSet to be tested. */
    82     int bit                             /**< Bit to be tested. */
    83 );
     92
     93bool psBitSetTest(const psBitSet * restrict inMask,
     94                  /**< Pointer psBitSet to be tested. */
     95
     96                  int bit               /**< Bit to be tested. */
     97                 );
    8498
    8599/** Perform a binary operation on two psBitSets
     
    90104 *  @return  psBitSet*: Pointer to struct containing result of binary operation.
    91105 */
    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 */
     106psBitSet *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 */
    97118);
    98119
     
    103124 *  @return  psBitSet*: Pointer to struct containing result of operation.
    104125 */
    105 psBitSet* psBitSetNot(
    106     psBitSet *outBitSet,                /**< Resulting psBitSet from operation */
    107     const psBitSet *restrict inBitSet   /**< Input psBitSet */
    108 );
     126
     127psBitSet *psBitSetNot(psBitSet * outBitSet,
     128                      /**< Resulting psBitSet from operation */
     129
     130                      const psBitSet * restrict inBitSet
     131                      /**< Input psBitSet */
     132                     );
    109133
    110134/** Convert the psBitSet to a string of ones and zeros.
     
    115139 *  @return  char*: Pointer to character array containing string data.
    116140 */
    117 char *psBitSetToString(
    118     const psBitSet *restrict inMask /**< psBitSet to convert */
    119 );
     141
     142char *psBitSetToString(const psBitSet * restrict inMask
     143                       /**< psBitSet to convert */
     144                      );
    120145
    121146/// @}
Note: See TracChangeset for help on using the changeset viewer.