Changeset 4109
- Timestamp:
- Jun 3, 2005, 3:30:18 PM (21 years ago)
- Location:
- trunk/doc/pslib
- Files:
-
- 2 edited
-
ChangeLogSDRS.tex (modified) (2 diffs)
-
psLibSDRS.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/ChangeLogSDRS.tex
r4090 r4109 1 %%% $Id: ChangeLogSDRS.tex,v 1.12 5 2005-06-02 21:13:29 jhoblittExp $1 %%% $Id: ChangeLogSDRS.tex,v 1.126 2005-06-04 01:30:18 price Exp $ 2 2 3 3 \subsection{Changes from version 00 to version 01} … … 669 669 \item add \code{PS_META_NULL} 670 670 \item add \code{NULL} keyword to ``Configuration files'' 671 \end{itemize} 671 \item Added \code{psMemCheckTYPE} functions, for many values of \code{TYPE}. 672 \end{itemize} -
trunk/doc/pslib/psLibSDRS.tex
r4089 r4109 1 %%% $Id: psLibSDRS.tex,v 1.26 1 2005-06-02 21:10:42 jhoblittExp $1 %%% $Id: psLibSDRS.tex,v 1.262 2005-06-04 01:30:18 price Exp $ 2 2 \documentclass[panstarrs,spec]{panstarrs} 3 3 … … 1318 1318 We discuss the application of \code{psType} in more detail in 1319 1319 section~\ref{sec:arithmetic}. 1320 1321 \subsection{Type checking} 1322 1323 Several of the collections contain data using a \code{void*} pointer. 1324 This makes it difficult to ensure that data coming off a collection is 1325 of a particular, desired type. Nevertheless, there is a way of 1326 identifying the type of a pointer pulled off a collection --- the 1327 registered deallocator function stored in the \code{psMemBlock}. We 1328 specify functions below, one for each of the major types in psLib, 1329 that check the type on a particular pointer, returning \code{true} if 1330 the \code{ptr} matches the desired type, as determined from the 1331 registered deallocator function. These functions may be implemented 1332 as macros if that is deemed convenient. 1333 1334 \begin{prototype} 1335 bool psMemCheckArray(psPtr ptr); 1336 bool psMemCheckBitSet(psPtr ptr); 1337 bool psMemCheckCell(psPtr ptr); 1338 bool psMemCheckChip(psPtr ptr); 1339 bool psMemCheckCube(psPtr ptr); 1340 bool psMemCheckFits(psPtr ptr); 1341 bool psMemCheckHash(psPtr ptr); 1342 bool psMemCheckHistogram(psPtr ptr); 1343 bool psMemCheckImage(psPtr ptr); 1344 bool psMemCheckKernel(psPtr ptr); 1345 bool psMemCheckList(psPtr ptr); 1346 bool psMemCheckLookupTable(psPtr ptr); 1347 bool psMemCheckMetadata(psPtr ptr); 1348 bool psMemCheckMetadataItem(psPtr ptr); 1349 bool psMemCheckMinimization(psPtr ptr); 1350 bool psMemCheckPixels(psPtr ptr); 1351 bool psMemCheckPlane(psPtr ptr); 1352 bool psMemCheckPlaneDistort(psPtr ptr); 1353 bool psMemCheckPlaneTransform(psPtr ptr); 1354 bool psMemCheckPolynomial1D(psPtr ptr); 1355 bool psMemCheckPolynomial2D(psPtr ptr); 1356 bool psMemCheckPolynomial3D(psPtr ptr); 1357 bool psMemCheckPolynomial4D(psPtr ptr); 1358 bool psMemCheckProjection(psPtr ptr); 1359 bool psMemCheckReadout(psPtr ptr); 1360 bool psMemCheckRegion(psPtr ptr); 1361 bool psMemCheckScalar(psPtr ptr); 1362 bool psMemCheckSphere(psPtr ptr); 1363 bool psMemCheckSphereTransform(psPtr ptr); 1364 bool psMemCheckSpline1D(psPtr ptr); 1365 bool psMemCheckStats(psPtr ptr); 1366 bool psMemCheckTime(psPtr ptr); 1367 bool psMemCheckVector(psPtr ptr); 1368 \end{prototype} 1369 1370 For user convenience, we also specify a one-stop shop which simply 1371 executes the appropriate \code{psMemCheckWhatever} function according 1372 to the \code{type}: 1373 1374 \begin{prototype} 1375 bool psMemCheckType(psType type, psPtr ptr); 1376 \end{prototype} 1320 1377 1321 1378 \subsection{Simple Scalars}
Note:
See TracChangeset
for help on using the changeset viewer.
