27.01.2015 Views

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

CCfits - HEASARC - NASA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

24.22 <strong>CCfits</strong>::FITSUtil::auto_array_ptr< X > Class Template Reference 103<br />

24.21.2 Constructor & Destructor Documentation<br />

24.21.2.1 <strong>CCfits</strong>::FitsFatal::FitsFatal ( const string & diag )<br />

Prints a message starting "∗∗∗ <strong>CCfits</strong> Fatal Error: ..." and calls terminate()<br />

Parameters<br />

diag A diagnostic string to be printed identifying the context of the error.<br />

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

• FitsError.h<br />

• FitsError.cxx<br />

24.22 <strong>CCfits</strong>::FITSUtil::auto array ptr< X > Class Template Reference<br />

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

#include <br />

Public Member Functions<br />

• auto_array_ptr (X ∗p=0) throw ()<br />

constructor. allows creation of pointer to null, can be modified by reset()<br />

• auto_array_ptr (auto_array_ptr< X > &right) throw ()<br />

copy constructor<br />

• ∼auto_array_ptr ()<br />

destructor.<br />

• X ∗ get () const<br />

return a token for the underlying content of ∗this<br />

• X & operator∗ () throw ()<br />

deference operator<br />

• void operator= (auto_array_ptr< X > &right)<br />

assignment operator: transfer of ownership semantics<br />

• X & operator[] (size_t i) throw ()<br />

return a reference to the ith element of the array<br />

• X operator[] (size_t i) const throw ()<br />

return a copy of the ith element of the array<br />

• X ∗ release () throw ()<br />

return underlying content of ∗this, transferring memory ownership<br />

• X ∗ reset (X ∗p) throw ()<br />

change the content of the auto_array_ptr to p<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!