IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4085


Ignore:
Timestamp:
Jun 1, 2005, 2:58:26 PM (21 years ago)
Author:
jhoblitt
Message:

change psVector to store it's number of elements as an long int
change psArray to store it's number of elements as an long int
change psList to store it's number of elements as an long int
change psListIterator to store the number of elements on the list as an long int
change psHash to store it's number of elements as an long int
change psLookupTable to store it's index as an long int

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r4084 r4085  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.120 2005-06-02 00:42:48 jhoblitt Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.121 2005-06-02 00:58:26 jhoblitt Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    656656  \item change blurb about ``Threads'' to clarify requirements
    657657  \item remove \code{lock} from \code{psList}
    658   \item change \code{psVector} to store it's number of elements as an \code{unsigned long int}
    659   \item change \code{psArray} to store it's number of elements as an \code{unsigned long int}
    660   \item change \code{psList} to store it's number of elements as an \code{unsigned long int}
    661   \item change \code{psListIterator} to store the number of elements on the list as an \code{unsigned long int}
     658  \item change \code{psVector} to store it's number of elements as an \code{long int}
     659  \item change \code{psArray} to store it's number of elements as an \code{long int}
     660  \item change \code{psList} to store it's number of elements as an \code{long int}
     661  \item change \code{psListIterator} to store the number of elements on the list as an \code{long int}
    662662  \item change \code{psListIterator} to store it's index as an \code{long int}
    663   \item change \code{psHash} to store it's number of elements as an \code{unsigned long int}
    664   \item change \code{psLookupTable} to store it's index as an \code{unsigned long int}
     663  \item change \code{psHash} to store it's number of elements as an \code{long int}
     664  \item change \code{psLookupTable} to store it's index as an \code{long int}
    665665  \item change \code{psBitSet} to store it's size as an \code{long int}
    666666\end{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r4084 r4085  
    1 %%% $Id: psLibSDRS.tex,v 1.256 2005-06-02 00:42:48 jhoblitt Exp $
     1%%% $Id: psLibSDRS.tex,v 1.257 2005-06-02 00:58:26 jhoblitt Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    13631363typedef struct {
    13641364    psType type;                        ///< vector data type and dimension
    1365     unsigned long int n;                ///< size of vector
    1366     const unsigned long int nalloc;     ///< allocated data block
     1365    long int n;                         ///< size of vector
     1366    const long int nalloc;              ///< allocated data block
    13671367    union {
    13681368        psS8  *S8;                      ///< Pointers to byte data
     
    13931393%
    13941394\begin{prototype}
    1395 psVector *psVectorAlloc(unsigned long int nalloc, psElemType type);
    1396 psVector *psVectorRealloc(psVector *vector, unsigned long int nalloc);
    1397 psVector *psVectorRecycle(psVector *vector, unsigned long int nalloc, psElemType type);
     1395psVector *psVectorAlloc(long int nalloc, psElemType type);
     1396psVector *psVectorRealloc(psVector *vector, long int nalloc);
     1397psVector *psVectorRecycle(psVector *vector, long int nalloc, psElemType type);
    13981398\end{prototype}
    13991399%
     
    14171417
    14181418\begin{prototype}
    1419 psVector *psVectorExtend(psVector *vector, unsigned long int delta, unsigned long int nExtend);
     1419psVector *psVectorExtend(psVector *vector, long int delta, long int nExtend);
    14201420\end{prototype}
    14211421
     
    15491549\begin{datatype}
    15501550typedef struct {
    1551     const unsigned long int n;          ///< size of array
    1552     const unsigned long int nalloc;     ///< allocated data block
     1551    const long int n;                   ///< size of array
     1552    const long int nalloc;              ///< allocated data block
    15531553    void **data;                        ///< pointer to data block
    15541554} psArray;
     
    15621562%
    15631563\begin{prototype}
    1564 psArray *psArrayAlloc(unsigned long int nalloc);
    1565 psArray *psArrayRealloc(psArray *array, unsigned long int nalloc);
     1564psArray *psArrayAlloc(long int nalloc);
     1565psArray *psArrayRealloc(psArray *array, long int nalloc);
    15661566\end{prototype}
    15671567%
     
    15801580
    15811581\begin{prototype}
    1582 psArray *psArrayAdd(psArray *array, unsigned long int delta, psPtr data);
     1582psArray *psArrayAdd(psArray *array, long int delta, psPtr data);
    15831583\end{prototype}
    15841584
     
    16001600
    16011601\begin{prototype}
    1602 bool psArraySet(psArray *array, unsigned long int position, psPtr data);
    1603 psPtr psArrayGet(const psArray *array, unsigned long int position);
     1602bool psArraySet(psArray *array, long int position, psPtr data);
     1603psPtr psArrayGet(const psArray *array, long int position);
    16041604\end{prototype}
    16051605
     
    16331633\begin{datatype}
    16341634typedef struct {
    1635    unsigned long int n;                ///< number of elements on list
     1635   long int n;                         ///< number of elements on list
    16361636   psListElem *head;                   ///< first element on list (may be NULL)
    16371637   psListElem *tail;                   ///< last element on list (may be NULL)
     
    18431843\begin{datatype}
    18441844typedef struct {
    1845     unsigned long int n;                ///< number of buckets
     1845    long int n;                         ///< number of buckets
    18461846    psHashBucket **buckets;             ///< the buckets themselves
    18471847} psHash;
     
    18651865A hash table is created with the following function:
    18661866\begin{prototype}
    1867 psHash *psHashAlloc(unsigned long int nalloc);
     1867psHash *psHashAlloc(long int nalloc);
    18681868\end{prototype}
    18691869which allocates the space for the hash table, creating and
     
    19421942    const char *filename;               ///< File from which data is to be read
    19431943    const char *format;                 ///< scanf-like format string for file
    1944     unsigned long int indexCol;         ///< Column of the index vector (starting at zero)
     1944    long int indexCol;                  ///< Column of the index vector (starting at zero)
    19451945    psVector *index;                    ///< Index values
    19461946    psArray *values;                    ///< Corresponding values: an array of vectors
Note: See TracChangeset for help on using the changeset viewer.