IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2004, 4:05:32 PM (22 years ago)
Author:
Paul Price
Message:

Expanded out the array definition.

File:
1 edited

Legend:

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

    r198 r211  
    4545
    4646/** An assembly of objects */
    47 PS_DECLARE_ARRAY_TYPE(psObject);
    48 PS_CREATE_ARRAY_TYPE(psObject);
     47typedef struct {
     48    enum psType type;                   //!< Type of data.  THIS STRUCT ELEMENT MUST BE FIRST IN THE STRUCT!
     49    int size;                           //!< Total number of elements available
     50    int n;                              //!< Number of elements in use
     51    psObject *arr;                      //!< The array data
     52} psVectorArray;
     53
     54/** Constructor */
     55psObjectArray *psObjectArrayAlloc(int s, //!< Total number of elements to make available
     56                                  int n //!< Number of elements that will be used
     57    );
     58/** Reallocator */
     59psObjectArray *psObjectArrayRealloc(psObjectArray *myArray, //!< Array to reallocate
     60                                    int s //!< Total number of elements to make available
     61    );
     62/** Destructor */
     63void psObjectArrayFree(psObjectArray *restrict myArray //!< Array to free
     64    );
    4965
    5066/***********************************************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.