IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 160


Ignore:
Timestamp:
Mar 9, 2004, 2:05:25 PM (22 years ago)
Author:
Paul Price
Message:

Changed constructor/destructor naming convention from "psXyzNew" to "psXyzAlloc"
and from "psXyzDel" to "psXyzFree".

Location:
trunk/archive/pslib/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psAstrom.h

    r153 r160  
    2828/** Constructor */
    2929psAstromCoeffs *
    30 psAstromCoeffsNew(int xyOrder,          //!< Spatial (x,y) order of polynomial
     30psAstromCoeffsAlloc(int xyOrder,                //!< Spatial (x,y) order of polynomial
    3131                  int colourOrder,      //!< Order of polynomial in colour
    3232                  int magOrder,         //!< Order of polynomial in magnitude
     
    3838/** Destructor */
    3939void
    40 psAstromCoeffsDel(psAstromCoeffs *restrict myAstromCoeffs //!< Object to destroy
     40psAstromCoeffsFree(psAstromCoeffs *restrict myAstromCoeffs //!< Object to destroy
    4141    );
    4242
     
    6060/** Constructor */
    6161psTelPointing *
    62 psTelPointingNew(double ra, double dec, //!< Telescope boresight
     62psTelPointingAlloc(double ra, double dec,       //!< Telescope boresight
    6363                 double ha,             //!< Hour angle
    6464                 double zd,             //!< Zenith distance
     
    7171/** Destructor */
    7272void
    73 psTelPointingDel(psTelPointing *restrict myTelPointing //!< Object to destroy
     73psTelPointingFree(psTelPointing *restrict myTelPointing //!< Object to destroy
    7474    );
    7575
     
    9191/** Constructor */
    9292psCellDescription *
    93 psCellDescriptionNew(void);
    94 
    95 /** Destructor */
    96 void
    97 psCellDescriptionDel(psCellDescription *restrict myCell //!< Cell description to destroy
     93psCellDescriptionAlloc(void);
     94
     95/** Destructor */
     96void
     97psCellDescriptionFree(psCellDescription *restrict myCell //!< Cell description to destroy
    9898    );
    9999
     
    117117/** Constructor */
    118118psOTADescription *
    119 psOTADescriptionNew(void);
     119psOTADescriptionAlloc(void);
    120120
    121121/** Destructor. */
    122122void
    123 psOTADescriptionDel(psOTADescription *restrict myOTA //!< OTA description to destroy
     123psOTADescriptionFree(psOTADescription *restrict myOTA //!< OTA description to destroy
    124124    );
    125125
     
    158158/** Constructor */
    159159psAstrom *
    160 psAstromNew(const psTelPointing *telescope //!< Telescope pointing, used to initialise the tp data.
    161     );
    162 
    163 /** Destructor */
    164 void
    165 psAstromDel(psAstrom *restrict myAstrom //!< Object to destroy
     160psAstromAlloc(const psTelPointing *telescope //!< Telescope pointing, used to initialise the tp data.
     161    );
     162
     163/** Destructor */
     164void
     165psAstromFree(psAstrom *restrict myAstrom        //!< Object to destroy
    166166    );
    167167
     
    184184/** Fit astrometric solution to list of (chip#,x,y) and (RA,Dec) */
    185185int
    186 psFitAstrom(psOTADescription *restrict ota, //!< psAstrom struct containing initial guess for coefficients
     186psFitAstrom(psOTADescription *restrict ota, //!< Initial guess for coefficients
    187187            const psOTAPosArray *restrict detector, //!< Positions on OTA (chip#,x,y)
    188188            const psSkyPosArray *restrict sky, //!< Positions on the sky (RA,Dec)
  • trunk/archive/pslib/include/psMatrix.h

    r153 r160  
    1010/** Constructor */
    1111psMatrix *
    12 psMatrixNew(int Xdimen,                 //!< x dimension of new matrix
     12psMatrixAlloc(int Xdimen,                       //!< x dimension of new matrix
    1313            int Ydimen                  //!< y dimension of new matrix
    1414            );
     
    1616/** Destructor */
    1717void
    18 psMatrixDel(psMatrix *restrict myMatrix //!< Matrix to destroy
     18psMatrixFree(psMatrix *restrict myMatrix        //!< Matrix to destroy
    1919            );
    2020
  • trunk/archive/pslib/include/psObjects.h

    r153 r160  
    3737/** Constructor */
    3838psObject *
    39 psObjectNew(void);
     39psObjectAlloc(void);
    4040
    4141/** Destructor */
    4242void
    43 psObjectDel(psObject *restrict myObject);
     43psObjectFree(psObject *restrict myObject);
    4444
    4545/***********************************************************************************************************/
     
    5959/** Constructor */
    6060psImageObjects *
    61 psImageObjectsNew(const psImage *image, //!< Image that produced the objects, which has metadata we need
     61psImageObjectsAlloc(const psImage *image,       //!< Image that produced the objects, which has metadata we need
    6262                  psObjectArray *objects //!< The objects
    6363                  );
     
    6565/** Destructor */
    6666void
    67 psImageObjectsDel(psImageObjects *restrict myImageObjects //!< Object to destroy
     67psImageObjectsFree(psImageObjects *restrict myImageObjects //!< Object to destroy
    6868                  );
    6969
     
    7878/** Constructor */
    7979psCatalogueObjects *
    80 psCatalogueObjectsNew(enum psCatalogue *catalogue, //!< Source catalogue
     80psCatalogueObjectsAlloc(enum psCatalogue *catalogue, //!< Source catalogue
    8181                      psObjectArray *objects //!< The objects
    8282                      );
     
    8484/** Destructor */
    8585void
    86 psCatalogueObjectsDel(psCatalogeObjects *restrict myCatalogueObjects //!< Object to destroy
     86psCatalogueObjectsFree(psCatalogeObjects *restrict myCatalogueObjects //!< Object to destroy
    8787                      );
    8888
     
    103103/** Constructor */
    104104psSuperObject *
    105 psSuperObjectNew(const psImageArray *images, //!< The images with the measurements
     105psSuperObjectAlloc(const psImageArray *images, //!< The images with the measurements
    106106                 const psObjectArray *objects //!< Object measurements
    107107                 );
     
    109109/** Destructor */
    110110void
    111 psSuperObjectDel(psSuperObject *restrict mySuperObject //!< Object to destroy
     111psSuperObjectFree(psSuperObject *restrict mySuperObject //!< Object to destroy
    112112                 );
    113113
  • trunk/archive/pslib/include/psPosition.h

    r153 r160  
    4949/** Constructor */
    5050psOTAPos *
    51 psOTAPosNew(void);
     51psOTAPosAlloc(void);
    5252
    5353/** Destructor */
    5454void
    55 psOTAPosDel(psOTAPos *restrict myOTAPos //!< Object to destroy
     55psOTAPosFree(psOTAPos *restrict myOTAPos        //!< Object to destroy
    5656    );
    5757
     
    7777/** Constructor */
    7878psSkyPos *
    79 psSkyPosNew(void);
     79psSkyPosAlloc(void);
    8080
    8181/** Destructor */
    8282void
    83 psSkyPosDel(psSkyPos *restrict mySkyPos //!< Object to destroy
     83psSkyPosFree(psSkyPos *restrict mySkyPos        //!< Object to destroy
    8484    );
    8585
     
    102102/** Constructor */
    103103psLatLong *
    104 psLatLongNew(void);
     104psLatLongAlloc(void);
    105105
    106106/** Destructor */
    107107void
    108 psLatLongDel(psLatLong *restrict myLatLong //!< Object to destroy
     108psLatLongFree(psLatLong *restrict myLatLong //!< Object to destroy
    109109    );
    110110
  • trunk/archive/pslib/include/psStats.h

    r153 r160  
    3131/** Constructor */
    3232psHistogram *
    33 psHistogramNew(float lower,             //!< Lower limit for the bins
     33psHistogramAlloc(float lower,           //!< Lower limit for the bins
    3434               float upper,             //!< Upper limit for the bins
    3535               float size               //!< Size of the bins
     
    3838/** Generic constructor */
    3939psHistogram *
    40 psHistogramNewGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins
     40psHistogramAllocGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins
    4141                      const psFloatArray *restrict upper, //!< Upper bounds for the bins
    4242                      float minVal,     //!< Minimum value
     
    4646/** Destructor */
    4747void
    48 psHistogramDel(psHistogram *restrict myHist //!< Histogram to destroy
     48psHistogramFree(psHistogram *restrict myHist //!< Histogram to destroy
    4949    );
    5050
Note: See TracChangeset for help on using the changeset viewer.