CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
CCfits - HEASARC - NASA
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
24.3 <strong>CCfits</strong>::Column Class Reference 51<br />
Retrieve data from a scalar column into a std::valarray, applying nullValue when<br />
relevant.<br />
• template<br />
void read (std::valarray< S > &vals, long rows, S ∗nullValue)<br />
return a single row of a vector column into a std::valarray, setting undefined values<br />
• template<br />
void readArrays (std::vector< std::valarray< S > > &vals, long first, long last)<br />
return a set of rows of a vector column into a vector of valarrays<br />
• template<br />
void readArrays (std::vector< std::valarray< S > > &vals, long first, long last,<br />
S ∗nullValue)<br />
return a set of rows of a vector column into a container, setting undefined values<br />
• virtual void readData (long firstRow, long nelements, long firstElem=1)=0<br />
Read (or reread) data from the disk into the Column object’s internal arrays.<br />
• size_t repeat () const<br />
get the repeat count for the rows<br />
• void resetRead ()<br />
reset the Column’s isRead flag to false<br />
• int rows () const<br />
return the number of rows in the table.<br />
• double scale () const<br />
get TSCALn value<br />
• virtual void setDimen ()<br />
set the TDIMn keyword.<br />
• void setDisplay ()<br />
set the TDISPn keyword<br />
• ValueType type () const<br />
returns the data type of the column<br />
• const String & unit () const<br />
get units of data in Column (TUNITn keyword)<br />
• bool varLength () const<br />
boolean, set to true if Column has variable length vector rows.<br />
• long width () const<br />
return column data width<br />
• template<br />
void write (const std::vector< S > &indata, long firstRow)<br />
write a vector of values into a scalar column starting with firstRow<br />
• template<br />
void write (const std::valarray< S > &indata, long firstRow)<br />
write a valarray of values into a scalar column starting with firstRow<br />
Generated on Tue Dec 6 2011 16:12:51 for <strong>CCfits</strong> by Doxygen