27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

24.23 <strong>CCfits</strong>::FITSUtil::CAarray< T > Class Template Reference 104<br />

Static Public Member Functions<br />

• static void remove (X ∗&x)<br />

utility function to delete the memory owned by x and set it to null.<br />

24.22.1 Detailed Description<br />

templateclass <strong>CCfits</strong>::FITSUtil::auto array ptr< X ><br />

A class that mimics the std:: library auto_ptr class, but works with arrays.<br />

This code was written by Jack Reeves and first appeared C++ Report, March 1996<br />

edition. Although some authors think one shouldn’t need such a contrivance, there<br />

seems to be a need for it when wrapping C code.<br />

Usage: replace<br />

float∗ f = new float[200];<br />

with<br />

FITSUtil::auto_array_ptr f(new float[200]);<br />

Then the memory will be managed correctly in the presence of exceptions, and delete<br />

will be called automatically for f when leaving scope.<br />

The documentation for this class was generated from the following file:<br />

• FITSUtil.h<br />

24.23 <strong>CCfits</strong>::FITSUtil::CAarray< T > Class Template Reference<br />

function object returning C array from a valarray. see CVarray for details<br />

#include <br />

Public Member Functions<br />

• T ∗ operator() (const std::valarray< T > &inArray)<br />

operator returning C array for use with image data.<br />

24.23.1 Detailed Description<br />

templateclass <strong>CCfits</strong>::FITSUtil::CAarray< T ><br />

function object returning C array from a valarray. see CVarray for details<br />

Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!